Hi,
I can delete the .DS_Store hidden file, but apparently not the version file.
The code has nothing special:
*if* (*file:exists*(*$file-sys-destination*)) *then **file:delete*(*$file-sys-destination*, *true*()) *else *()
where $file-sys-destination is a path to a folder in the form publication/model/os/carrier/lang.
I upgraded to Maverick and to BaseX 7.8 at 2 days interval so I'm not 100% sure which one is making a difference here. I'll run some more tests once I get 7.8.1 running. I'm still on 7.8.
On Thu, Feb 27, 2014 at 4:20 AM, Jens Erat jens.erat@uni-konstanz.dewrote:
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
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