Maranellas
asked on
How to detect if directory is writible in JAVA
As the topic says.
ASKER
isn't it suppose to be backslash .forward slash is for unix systems only
You can use:
File.separator
The system-dependent default name-separator character.
File.separator
The system-dependent default name-separator character.
ASKER
yes i already aware of that the thing is he gave incorrect solution apparently!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
if(f.canWrite())
System.out.println("The directory is writable");
else
System.out.println("The directory is not writable");