public interface File
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead() |
File |
child(String other)
Resolve the given path against this path.
|
boolean |
delete() |
boolean |
deleteRecursively()
Delete this file and all its contained files and directories.
|
boolean |
exists() |
String |
getName() |
File |
getParentFile() |
String |
getPath() |
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) |
File child(String other)
other - the path to resolve against this pathboolean mkdirs()
true if and only if the directory was created,
along with all necessary parent directories; false
otherwiseString getName()
File getParentFile()
String getPath()
boolean canRead()
boolean exists()
boolean isDirectory()
boolean isFile()
long length()
0L if file does not existboolean delete()
boolean renameTo(File dest)
boolean deleteRecursively()
true if all content and this file where deleted, false
otherwiseCopyright © 2011–2020. All rights reserved.