you need to check the resolution of the used file / directory
//filePath = path of file/directory access denied by user ( in windows )
File file = new File(filePath);
file.canWrite();
file.canRead();
file.canExecute();
all three return true, but m cannot delete any file / directory
source
share