public class SecureDirectory extends File
Modifier and Type | Field and Description |
---|---|
protected static boolean |
isNotWindows |
pathSeparator, pathSeparatorChar, separator, separatorChar
Constructor and Description |
---|
SecureDirectory(File parent,
String child) |
SecureDirectory(String pathname) |
SecureDirectory(String parent,
String child) |
Modifier and Type | Method and Description |
---|---|
boolean |
mkdir()
Sets directory to mode 700 if the directory is created
|
boolean |
mkdirs()
Sets directory to mode 700 if the directory is created
Does NOT change the mode of other created directories
|
protected void |
setPerms()
Tries to set the permissions to 700,
ignores errors
|
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURL
public SecureDirectory(String pathname)
public boolean mkdir()
public boolean mkdirs()
protected void setPerms()