File plugin file path length

Questions and answers on developing, deploying and using plugins and JavaBeans

File plugin file path length

Postby udiluca » Thu Feb 26, 2015 11:31 am

Hello,

I'm working on an Document Management System based on Servoy.
All folders created and all files included in the database gets an input in the file system, where its name is transformed based on the record UUID.

As we don't plan any limitation in the number of folders the user can nest, I'm wondering if there's a limitation in the file path length the file plugin can handle ?

We thought of a method to split up the UUID, creating sub-folders, so that to limit the number of elements per folder, but as this system is multi-tenant, the algorithm seems complex with a clear overhead to calculate the directory structure.

Thanks for any input on the subject, I couldn't find this information.

Ugo
udiluca
 
Posts: 24
Joined: Wed Apr 10, 2013 7:25 pm

Re: File plugin file path length

Postby david » Thu Feb 26, 2015 6:50 pm

Pretty sure there is no limit to the directory structure string length as we've used some pretty long ones in the past.

An idea: if you want to keep original file names, put them in directories with names based on UUIDs.

Some very old code but might be interesting for you:

http://community.data-sutra.com/project ... am.js#L742
http://community.data-sutra.com/project ... am.js#L935
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.

Re: File plugin file path length

Postby udiluca » Fri Feb 27, 2015 11:30 pm

Thank you David,

Interresting idea indeed. I will look at this.

Ugo
udiluca
 
Posts: 24
Joined: Wed Apr 10, 2013 7:25 pm


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 1 guest