Name: dbT83986 Date: 01/29/99
File newDir = new File("/tmp/x");
if ( ! newDir.exists() ) newDir.mkdir();
I would like to do something like the following:
if ( ! newDir.exists() ) newDir.mkdir("777");
or
newDir.setMode("777"), newDir.setPermissions("777"), etc.
(Review ID: 36822)
======================================================================
- duplicates
-
JDK-4089881 java.io.File: Want to change file permissions/info
- Closed