commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Ivankovits <>
Subject Re: [vfs] FileObject.delete
Date Thu, 03 Jun 2004 17:19:08 GMT 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 delete.
>Not really. Think if you have structure
>   dir1.1
>      a.txt
>   dir1.2
>      b.txt
>Then calling [FileObject:dir1].delete()
>would not have deleted it's children.
Yes - yes - you are right, i currently looked at delete(FileSelector) 
and mixed things up ;-)

Now i commited this stuff.
delete() returns true if it has deleted something
delete(FileSelector) returns the number of objects it has deleted

-- Mario

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message