I want to check the folder path (local path, shared path) and credentials for the folder, even if the user's Be used in this folder.
In windows, we can confirm manually by right-clicking on that folder and go to the Security tab.
I have read some posts, but most of them are suggesting that to create a file in that folder and then to delete it, I am restricted from doing so in my requirement.
Please help me if we can do this
- < P> Create a new file from the given path:
file testFile = new file ("path");
-
If canRead:
if (file.canRead ()) {// do something}
What can you do with Java.io.file for your complete list, please go to API (you can try deleting, writing, etc.):
Comments
Post a Comment