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

path

§Enums

path.Kind
path.RootBranch

§Functions

path.appData

Utility function create an app data path.

path.combine

Combine two DistinctivePaths.

path.directory

Utility function to create a DirectoryPath

path.file

Utility function to create a FilePath

path.fromPosix

Transform a string into a DistinctivePath.

path.isDirectory

Is this DistinctivePath a directory?

path.isFile

Is this DistinctivePath a file?

path.isOnRootBranch

Is this DistinctivePath on the given RootBranch?

path.isPartition

Is this DistinctivePath of the given Partition?

path.isRootDirectory

Is this DirectoryPath a root directory?

path.isSameKind

Check if two DistinctivePath are of the same kind.

path.isSamePartition

Check if two DistinctivePath have the same Partition.

path.kind

What Kind of path are we dealing with?

path.log

Render a raw Path to a string for logging purposes.

path.map

Map a DistinctivePath.

path.parent

Get the parent directory of a DistinctivePath.

path.removePartition

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

path.root

Utility function to create a root DirectoryPath

path.terminus

Get the last part of the path.

path.toPosix

Transform a DistinctivePath into a string.

path.unwrap

Unwrap a DistinctivePath.

path.withPartition

Utility function to prefix a path with a Partition.

§Type Aliases

path.Directory

Alias for DirectoryPath

path.DirectoryPath

A directory path.

path.Distinctive

Alias for DistinctivePath

path.DistinctivePath

A file or directory path.

path.File

Alias for FilePath

path.FilePath

A file path.

path.Partition

RootBranches that are accessible through the POSIX file system interface.

path.Partitioned
path.PartitionedNonEmpty
path.Private

Private partition

path.Public

Public partition

path.Segment
path.Segments
path.SegmentsNonEmpty