Page 1 of 1

Repository structure

PostPosted:Fri Oct 18, 2019 1:52 pm
by Cristina890
Hello,

I searched the forum and documentation and couldn't find the answer.
In Openkm when inserting a document into File System this directory structure is created:
Anotação 2019-10-18 104925.png
Anotação 2019-10-18 104925.png (4.18 KiB) Viewed 3376 times
I would like to know if there is a possibility to change the Openkm directory structure without having to create folders like the image below:

Anotação 2019-10-18 105037.png
Anotação 2019-10-18 105037.png (3.26 KiB) Viewed 3376 times

Re: Repository structure

PostPosted:Sat Oct 19, 2019 10:26 am
by jllort
Yes, but you must change/create your own data storage. If you wish I can guide about the classes should modify for it.

Re: Repository structure

PostPosted:Mon Oct 21, 2019 1:31 am
by Cristina890
Hi Jlort,

Thank you so much for the quick reply.
Could you please tell me which class I have to change ?
Is It possible change the scruture in Professional version?

Re: Repository structure

PostPosted:Wed Oct 23, 2019 4:58 pm
by jllort
In professional edition should be modified the default data storage class. I do not know what kind of change you have in mind but consider in the data storage you are saving the versions of documents. If you think you will have a document named as "document_name.pdf" in the file system, you might consider the document may have several version an is not possible having the same document name in the file system with several version in the same location.

Take a look at FsDataStore class -> https://github.com/openkm/document-mana ... Store.java