| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead() |
File |
child(String name)
Resolve the given path against this path.
|
boolean |
delete() |
boolean |
deleteRecursively()
Delete this file and all its contained files and directories.
|
boolean |
equals(Object o) |
boolean |
exists() |
static JavaFile |
fromFile(File path) |
String |
getName() |
File |
getParentFile() |
String |
getPath() |
int |
hashCode() |
boolean |
isDirectory() |
boolean |
isFile() |
long |
length() |
List<File> |
listFiles() |
boolean |
mkdirs()
Creates the directory named by this file, including any
necessary but nonexistent parent directories.
|
boolean |
renameTo(File dest) |
String |
toString() |
public File child(String name)
Filepublic boolean mkdirs()
Filepublic File getParentFile()
getParentFile in interface Filepublic boolean isDirectory()
isDirectory in interface Filepublic long length()
public boolean deleteRecursively()
FiledeleteRecursively in interface Filetrue if all content and this file where deleted, false
otherwiseCopyright © 2011–2020. All rights reserved.