This class represents a file system entry.
Defined in: File.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
jls.io.File(parent, child)
Creates a file.
|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
jls.io.File.concat(a, b)
Concats to path parts and then returns the resulting path.
|
|
exists()
Tests whether this file exists.
|
|
|
Returns the absolute path of this file.
|
|
|
Returns the extension of this file.
|
|
|
getName()
Returns the name of this file.
|
|
|
getPath()
Returns the path of this file.
|
|
|
Tests whether the file path is absolute.
|
|
|
Tests whether the file entry is a directory.
|
|
|
isFile()
Tests whether the file entry is a file.
|
|
|
length()
Returns the length of the file entry represented by this file.
|
|
|
list()
Returns an array of strings naming the file system entries in the directory represented by this file.
|
|
|
Returns an array of files in the directory represented by this file.
|
|
| <static> |
jls.io.File.listRoots()
Returns an array of file system roots.
|
|
mkdir()
Creates the directory named by this file.
|
|
| <static> |
jls.io.File.normalize(path)
Normalizes a path.
|
|
remove()
Removes the file entry.
|
|
|
renameTo(newPath)
Renames this file.
|