If you want to completely wipe a directory, I’d go for deleting and recreating the directory itself anyway (given you can write to the parent folder).
Yet I’m still curios about the path in the error message, are you really trying to wipe the file system root or did you remove some part of the path?
--
Jens Erat
[phone]: tel:+49-151-56961126
[mail]: mailto:email@jenserat.de
[jabber]: xmpp:jabber@jenserat.de
[web]:
http://www.jenserat.de
PGP: 350E D9B6 9ADC 2DED F5F2 8549 CBC2 613C D745 722B
Am 27.02.2014 um 10:14 schrieb Dirk Kirsten
dk@basex.org:
> Hello France,
>
> are you sure you have the required rights to deleted this file with the
> user executing BaseX?
> Id did a quick test and had not trouble deleted a hidden file.
> Furthermore, I did a quick look into the code and deleting works using
> the java.io.file.delete() function, so its seems not to be related to BaseX.
>
> Cheers,
> Dirk
>
> On 27/02/14 02:46, France Baril wrote:
>> Hi,
>>
>> I need to be able to export content to a clean directory. When I export
>> content to a directory that used to exist, I need to wipe and clean to
>> replace everything with new content.
>>
>> However, I am getting io-errors: Stopped at
>>
>> /Applications/basex/webapp/How2_StaticHTML.xqm, 738/30:
>>
>> [io-error] Path '/.DocumentRevisions-V100' cannot be deleted.
>>
>> Is there anyway from the basex side to allow deletion of hidden files or do
>> I have to disable revisions on my computer, so these files never get
>> created in the first place? The second option seems rather drastic.
>>
>>
>>
>>
>> _______________________________________________
>> BaseX-Talk mailing list
>> BaseX-Talk@mailman.uni-konstanz.de
>>
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
>>
>
> --
> Dirk Kirsten, BaseX GmbH,
http://basex.org
> |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz
> |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer:
> | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle
> `-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22
> _______________________________________________
> BaseX-Talk mailing list
> BaseX-Talk@mailman.uni-konstanz.de
>
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk