Represents a file in a hierarchical file system.
no type hierarchy
no subtypes hierarchy
Attributes | |
contentType | Source Codeshared formal String? contentType Determine the content type of this file, if possible. |
directory | Source Codeshared formal Directory directory The directory containing this file. |
executable | Source Codeshared formal Boolean executable Determine if this file may be executed. |
Source Codeshared formal Boolean hidden Determine if this file is considered hidden. | |
lastModifiedMilliseconds | Source Codeshared formal variable Integer lastModifiedMilliseconds The timestamp of the last modification of this file. |
name | Source Codeshared formal String name The name of this file. |
readable | Source Codeshared formal Boolean readable Determine if this file may be read from. |
size | Source Codeshared formal Integer size The size of this file, in bytes. |
store | Source Codeshared formal Store store The store to which this file belongs. |
writable | Source Codeshared formal Boolean writable Determine if this file may be written to. |
Inherited Attributes |
Attributes inherited from: Object |
Attributes inherited from: ExistingResource |
Attributes inherited from: Resource |
Methods | |
appender | Source Codeshared Writer appender(String? encoding = null) Deprecated: Use A Parameters:
|
copy | Source Codeshared formal File copy(Nil target, Boolean copyAttributes = false) Copy this file to the given location. Parameters:
|
copyOverwriting | Source Codeshared formal File copyOverwriting(File|Nil target, Boolean copyAttributes = false) Copy this file to the given location, overwriting the target if it already exists. Parameters:
|
createLink | Source Codeshared formal File createLink(Nil target) Create a hard link to this file. |
createSymbolicLink | Source Codeshared formal Link createSymbolicLink(Nil target) Create a symbolic link to this file. |
move | Source Codeshared formal File move(Nil target) Move this file to the given location. |
moveOverwriting | Source Codeshared formal File moveOverwriting(File|Nil target) Move this file to the given location, overwriting the target if it already exists. |
reader | Source Codeshared Reader reader(String? encoding = null) Deprecated: Use A Parameters:
|
writer | Source Codeshared Writer writer(String? encoding = null) Deprecated: Use A Parameters:
|
Inherited Methods |
Methods inherited from: Object |
Methods inherited from: ExistingResource |
Nested Classes | |
Appender | Source Codeshared formal Appender A |
Overwriter | Source Codeshared formal Overwriter A |
Reader | Source Codeshared formal Reader A |