marta

Class Path

Equatable

An absolute file path in some specific file system (not necessarily the local one).

Implements __tostring(), returning rawValue.
Implements _eq, comparing rawValues.

class marta.Path {

let components: Array<String>

let extension: String

let isRoot: Boolean

let name: String

let nonRootComponents: Array<String>

let parent: Path?

let rawValue: String

let simpleExtension: String

fun hasPrefix(parent): Boolean

fun relativeString(parent): String

fun resolve(pathComponents): Path

}