Reference

std/path/root

std/path/src/root.trb

Root, the four things a path can start at - nothing, the file system, a drive or a share - and the text each of them shows as.

type Root

type Root with Show, Equals, Hash

Where a path starts. A path without one is relative.

Examples

print Root.Drive('C').show()

Related

  • Path - the root plus the components below it.

case Unix

case Unix

/: the root of the file system, and on Windows the root of the current drive.

case Drive

case Drive(letter: Char)

C:/: one drive, with an absolute path on it. The letter is upper case.

case Share

case Share(server: String, share: String)

//server/share: a UNC share.

fn show

fn show(): String

The text the root shows as, including its trailing separator.