marta

Class File

Equatable

File in a file system.

class marta.File {

let fileSystem: FileSystem

let isLocal: Boolean

let isRoot: Boolean

let name: String

let nameWithoutExtension: String

let parent: File?

let path: String

let pathExtension: String

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?

}