Not as far as I know.

As I understand it, the concern here is security. Any filesystem delete (or 
move) would be protected by an exec privilege and would be restricted by 
filesystem permissions. But it's even more secure to omit the functionality 
completely. The same logic applies to any kind of direct process control.

Of course, xdmp:save is almost as dangerous. If the filesystem permissions 
allow, you can overwrite any file on the filesystem....

-- Mike

On 14 Sep 2012, at 07:54 , Keith L. Breinholt wrote:

> Unfortunately a move is effectively a copy and delete operation, so that is 
> not likely to occur until a delete option is available.  
> 
> Rename is OS specific but within a directory should be doable, but I am not 
> aware of any such operation.  
> 
> Are you aware of a rename operation Michael?
> 
> -----Original Message-----
> From: Florent Georges [mailto:[email protected]] 
> Sent: Friday, September 14, 2012 8:35 AM
> To: Keith L. Breinholt; MarkLogic Developer Discussion; Michael Blakeley
> Subject: Re: [MarkLogic Dev General] Inserting in a file system module 
> database
> 
> Keith L. Breinholt wrote:
> 
>   Hi,
> 
>> Unfortunately there is no XQuery functionality to remove a file system 
>> directory or a file.
> 
>   Thanks.  In my case, I guess the best option is to handle the rest of the 
> processing (removing the files from the management meta information) and ask 
> the user to delete them manually, by providing the paths.
> 
>   If it was possible to move, or at least rename the files and directories to 
> delete, it would make user's life easier...
> 
>   Regards,
> 
> --
> Florent Georges
> http://fgeorges.org/
> http://h2oconsulting.be/
> 

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to