nxt.path

Members

Functions

baseName
FileName baseName(FilePath a)
DirName baseName(DirPath a)
DirName baseName(URL a)
FileName baseName(FileURL a)
DirName baseName(DirURL a)

Get basename of a.

buildNormalizedPath
FilePath buildNormalizedPath(DirPath a, FilePath b)
DirPath buildNormalizedPath(DirPath a, DirPath b)
DirPath buildNormalizedPath(DirPath a, DirName b)
FilePath buildNormalizedPath(DirPath a, FileName b)

Build path a/b.

buildPath
FilePath buildPath(DirPath a, FilePath b)
DirPath buildPath(DirPath a, DirPath b)
DirPath buildPath(DirPath a, DirName b)
FilePath buildPath(DirPath a, FileName b)

Build path a/b.

exists
bool exists(Path a)
bool exists(FilePath a)
bool exists(DirPath a)
bool exists(FileURL a)
bool exists(DirURL a)
bool exists(FileName a)
bool exists(DirName a)

Check if a exists.

expandTilde
FilePath expandTilde(FilePath a)
DirPath expandTilde(DirPath a)

Expand tilde in a. TODO: remove @trusted when scope inference is works.

Structs

DirName
struct DirName

Directory name (either local or remote).

DirPath
struct DirPath

Directory path (on local file system). See: SUMO:ComputerDirectory.

DirURL
struct DirURL

Directory URL.

ExePath
struct ExePath

Execute file path (on local file system).

FileName
struct FileName

File name (either local or remote).

FilePath
struct FilePath

(Regular) file path (on local file system). See: https://hackage.haskell.org/package/filepath-1.5.0.0/docs/System-FilePath.html#t:FilePath

FileURL
struct FileURL

File URL.

FileURLOffset
struct FileURLOffset

File URL and Offset (in bytes).

FileURLRegion
struct FileURLRegion

File URL and Region (in bytes).

Path
struct Path

Path.

RdPath
struct RdPath

Written (input) path (on local file system).

URL
struct URL

URL.

WrPath
struct WrPath

Written (output) path (on local file system).

See Also

dmd.root.filename

Meta