marta

Class File

File in a file system.

class marta.File {

let dateAdded: Int

let dateCreated: Int

let dateModified: Int

let fileSystem: FileSystem

let isHidden: Boolean

let isRoot: Boolean

let mode: Int

let name: String

let nameWithoutExtension: String

let parent: File?

let path: String

let pathExtension: String

let size: Int

fun append(path): File

fun canonicalize(): Error?, File?

fun delete(): Error?

fun exists(): Boolean

fun getChildren(): FileIterator

fun hasPrefix(parent): Boolean

fun isOnSameVolume(other): Boolean

fun makeFolder(mode): Error?

fun makeSymbolicLink(target, mode): Error?

fun readSymbolicLink(): Error?, String?

fun readText(): Error?, String

fun rename(target): Error?

fun writeText(text, flags, mode): Error?

}