Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

§Enums

Kind
RootBranch

§Functions

appData

Utility function create an app data path.

combine

Combine two DistinctivePaths.

directory

Utility function to create a DirectoryPath

file

Utility function to create a FilePath

fromPosix

Transform a string into a DistinctivePath.

isDirectory

Is this DistinctivePath a directory?

isFile

Is this DistinctivePath a file?

isOnRootBranch

Is this DistinctivePath on the given RootBranch?

isPartition

Is this DistinctivePath of the given Partition?

isRootDirectory

Is this DirectoryPath a root directory?

isSameKind

Check if two DistinctivePath are of the same kind.

isSamePartition

Check if two DistinctivePath have the same Partition.

kind

What Kind of path are we dealing with?

log

Render a raw Path to a string for logging purposes.

map

Map a DistinctivePath.

parent

Get the parent directory of a DistinctivePath.

removePartition

Remove the Partition of a DistinctivePath (ie. the top-level directory)

root

Utility function to create a root DirectoryPath

terminus

Get the last part of the path.

toPosix

Transform a DistinctivePath into a string.

unwrap

Unwrap a DistinctivePath.

withPartition

Utility function to prefix a path with a Partition.

§Type Aliases

Directory

Alias for DirectoryPath

DirectoryPath

A directory path.

Distinctive

Alias for DistinctivePath

DistinctivePath

A file or directory path.

File

Alias for FilePath

FilePath

A file path.

Partition

RootBranches that are accessible through the POSIX file system interface.

Partitioned
PartitionedNonEmpty
Private

Private partition

Public

Public partition

Segment
Segments
SegmentsNonEmpty