Hi,
I have some trouble using the ADD command, but maybe I’m not understanding the command correctly.
We have a java application that runs basex (7.7) embedded. I’m using the Add class/command to add an XML file to the database. After that, I’d like to delete that XML file from the local file system because I assume it has somehow be imported or copied to my database. However, from within my java application, I am not able to delete the file (File.delete() will always return false and the file won’t be deleted).
I tried the same thing with basex GUI: create a DB, add multiple files, delete those files (while DB is still open), do some queries (which works fine), close the DB, reopen it, do some queries again (which still works fine).
Do I miss or misunderstand something? Do I need to release the XML file resource when using the java API?
Any help would be appreciated.
Mit freundlichen Grüßen / With kind regards,
Julien Charon
Avitech GmbH
Engineering AxL
Tel.: +49 (0)7541/282-177
Fax: +49 (0)7541/282-199
e-mail: julien.charon@avitech.aero
________________________________________________
Avitech GmbH
Principal Office: Bahnhofplatz 1 | 88045 Friedrichshafen | Germany
Court Registration: Amtsgericht Ulm | HRB 728293
Geschäftsführer/Managing Director: Antonio Maria Gonzalez Gorostiza
This message may contain confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.