There is no documented API function for directory creation. But http://marklogic.markmail.org/search/?q=filesystem%20directory%20create#query:filesystem%20directory%20create+page:1+mid:t657yhz5oryvzrj6+state:results includes mention of an undocumented, unsupported function.
Or you could write a REST-ish endpoint in some other language to handle some of your filesystem operations. -- Mike On 30 Aug 2012, at 08:43 , Florent Georges wrote: > Danny Sokolsky wrote: > > Hi Danny, > >> You can write to the server using xdmp:save. > > Yes xdmp:save(), that's what I was looking for, thank you! > >> As David points out though, it is a sharp tool. > > Oh yes, I am very aware of that ;-) But I am writing an application > which is aimed at being used only for administration purposes. So the > permissions management should be handled at the app server access > itself, and I decided to trust the admin of the system ;-) > > Unfortunately, I could not find any way to create a directory. If > the dir I have to put the module into (that is, a sub dir of the app > server module dir) does not exist, then it is an error when I try to > save. I would have expected an option on xdmp:save() that says "if > the parent directory does not exist, then create it". > > But I did not find this option, nor any other function to manually > create the missing directories... Did I miss anything? > > Regards, > > -- > Florent Georges > http://fgeorges.org/ > http://h2oconsulting.be/ > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general > _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
