Hi
In various places we use java.io.File.[delete|mkdir] without respecting
the return value. File.delete e.g. may just return false if the
file/directory can't be deleted/created because of any other reason than
a SecurityException [1].
Can this become a problem -> Jira or is it just a waste of thoughts? BTW
in Java 7 this can be solved by using java.nio.file.Files [2] which
throws an IOException in this case
Regards
Felix
[1]
http://download.oracle.com/javase/6/docs/api/java/io/File.html#delete%28%29
[2]
http://download.oracle.com/javase/7/docs/api/java/nio/file/Files.html#delete%28java.nio.file.Path%29
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]