Add delete-file and delete-file-recursively functions to java-utils
Another one of those bizarre omissions from the JDK. Discussed this with Chouser on IRC, and he thinks it's a good idea.
I've added it to java-utils, though there are enough file-specific functions now that I think a new file-utils namespace could be spun off.
I've added it to java-utils, though there are enough file-specific functions now that I think a new file-utils namespace could be spun off.
Leave a comment
on 2009-10-08 23:38 *
By technomancy
Attachment 0001-Add-delete-file-and-delete-file-recursively-function.patch added
file:cjQy7qTi0r3R7MeJe5afGb: Implementation
file:cjQBUaTi0r3R7MeJe5afGb: First test
on 2009-10-08 23:38 *
By technomancy
Attachment 0003-Added-a-test-for-delete-file-recursively.patch added
file:cjQEqGTi0r3R7MeJe5afGb: Second test
Did you try test-delete-file-recursively on Windows? Looks like it might have issues there. I'll apply the 0001 and 0002 patches, but please take a look at 0003 to see if there's a way to be sure it won't cause false negatives.
on 2009-10-28 19:53 *
By technomancy
(In revision:8eef617aac7b077421d4aa9c84a2df189af6ee17) java-utils: Add delete-file and delete-file-recursively functions
Also added test for delete-file. Refs #33
Signed-off-by: Chouser <chouser@n01se.net>
Branch: master
Also added test for delete-file. Refs #33
Signed-off-by: Chouser <chouser@n01se.net>
Branch: master