ceylon.file
Interface File

Satisfied Interfaces: ExistingResource, Resource

Represents a file in a hierarchical filesystem.

Attributes
Modifier and TypeName and Description
shared formal String?contentType

Determine the content type of this file, if possible.

shared formal Directorydirectory

The directory containing this file.

shared formal Booleanexecutable

Determine if this file may be executed.

shared formal Booleanhidden

Determine if this file is considered hidden.

shared formal variable IntegerlastModifiedMilliseconds

The timestamp of the last modification of this file.

shared formal Stringname

The name of this file.

shared formal Booleanreadable

Determine if this file may be read from.

shared formal Integersize

The size of this file, in bytes.

shared formal Storestore

The store to which this file belongs.

shared formal Booleanwritable

Determine if this file may be written to.

Show inherited attributes
Attributes inherited from class: Object
string
Methods
Modifier and TypeMethod and Description
shared formal Writerappender(String? encoding)

A Writer for appending text to this file

shared formal Filecopy(Nil target)

Copy this file to the given location.

shared formal FilecopyOverwriting(File|Nil target)

Copy this file to the given location.

createLink(Nil target)

Create a hard link to this file.

createSymbolicLink(Nil target)

Create a symbolic link to this file.

shared formal Filemove(Nil target)

Move this file to the given location.

shared formal FilemoveOverwriting(File|Nil target)

Move this file to the given location.

shared formal Readerreader(String? encoding)

A Reader for reading lines of text from this file.

shared formal Writerwriter(String? encoding)

A Writer for writing text to this file, after truncating the file to length 0.