ceylon.file
File
Represents a file in a hierarchical file system.
Attributes | |
---|---|
Modifier and Type | Name and Description |
shared formal String? | contentType Determine the content type of this file, if possible. |
shared formal Directory | directory The directory containing this file. |
shared formal Boolean | executable Determine if this file may be executed. |
hidden Determine if this file is considered hidden. | |
shared formal variable Integer | lastModifiedMilliseconds The timestamp of the last modification of this file. |
shared formal String | name The name of this file. |
shared formal Boolean | readable Determine if this file may be read from. |
shared formal Integer | size The size of this file, in bytes. |
shared formal Store | store The store to which this file belongs. |
shared formal Boolean | writable Determine if this file may be written to. |
Attributes inherited from class: Object |
---|
string |
Methods | |
---|---|
Modifier and Type | Method and Description |
shared formal Writer | appender(String? encoding) A |
shared formal File | copy(Nil target) Copy this file to the given location. |
shared formal File | copyOverwriting(File|Nil target) Copy this file to the given location, overwriting the target if it already exists. |
shared formal File | createLink(Nil target) Create a hard link to this file. |
shared formal Link | createSymbolicLink(Nil target) Create a symbolic link to this file. |
shared formal File | move(Nil target) Move this file to the given location. |
shared formal File | moveOverwriting(File|Nil target) Move this file to the given location, overwriting the target if it already exists. |
shared formal Reader | reader(String? encoding) A |
shared formal Writer | writer(String? encoding) A |