Re: Difference between Files#delete(Path) and File#delete()

2012-08-29 Thread Alan Bateman
On 29/08/2012 11:15, Premraj wrote: I was trying to shift from old file API to NIO API (using JDK 7 update 6) but I found that on Windows (I have Windows 7) platform if I have read only file then File#delete() call will delete the file while Files#delete(Path) fails with exception (java.nio.file

Difference between Files#delete(Path) and File#delete()

2012-08-29 Thread Premraj
Hi all, I'm not sure whether this is the right place for this question but if in case its not please direct me to the correct forum. I was trying to shift from old file API to NIO API (using JDK 7 update 6) but I found that on Windows (I have Windows 7) platform if I have read only file then File