Re: [vfs] FileObject.delete

2004-06-03 Thread Mario Ivankovits
[EMAIL PROTECTED] wrote: This will be done AFTER the children are removed, just to check if the folder is really empty before deleting it. I think the indention was to check if any other process created a file within the folder structure - and thus to avoid a error message during recursive delet

Re: [vfs] FileObject.delete

2004-06-03 Thread rami . ojares
> This will be done AFTER the children are removed, just to check if the > folder is really empty before deleting it. > I think the indention was to check if any other process created a file > within the folder structure - and thus to avoid a error message during > recursive delete. Not really

Re: [vfs] FileObject.delete

2004-06-03 Thread Mario Ivankovits
[EMAIL PROTECTED] wrote: So the call to file.getChildren().length != 0 is already made during delete for every folder. This will be done AFTER the children are removed, just to check if the folder is really empty before deleting it. I think the indention was to check if any other process create

[vfs] FileObject.delete

2004-06-03 Thread rami . ojares
FileObject.delete() calls FileObject.delete(Selectors.SELECT_SELF) So all the juice is in delete(FileSelector) There we find section >>> SNIP // If the file is a folder, make sure all its children have been deleted if (file.type == FileType.FOLDER && file.getChildren().length != 0) { // TODO

[vfs] FileObject.delete

2004-06-03 Thread rami . ojares
USING EXTERNAL EDITOR - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [vfs] FileObject.delete

2004-06-02 Thread Rami Ojares
If I delete a FileObject I don't get any information about whether that FileObject was actually deleted or not. If file is FOLDER with children or IMAGINARY nothing is deleted but there is no way to know that. Actually you can query the file type and know for sure in case of IMAGINARY but in case o