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

path.directory

Utility function to create a DirectoryPath

function directory<P extends Partition>(...args: PartitionedNonEmpty<P>): DirectoryPath<PartitionedNonEmpty<P>>;
function directory<P extends Partition>(...args: Partitioned<P>): DirectoryPath<Partitioned<P>>;
function directory(...args: SegmentsNonEmpty): DirectoryPath<SegmentsNonEmpty>;
function directory(...args: Segments): DirectoryPath<Segments>;
§

Utility function to create a DirectoryPath

§Type Parameters

§Parameters

§
...args: PartitionedNonEmpty<P> optional
[src]
§
directory<P extends Partition>(...args: Partitioned<P>): DirectoryPath<Partitioned<P>>
[src]

§Type Parameters

§Parameters

§
...args: Partitioned<P> optional
[src]
§
directory(...args: Segments): DirectoryPath<Segments>
[src]

§Parameters

§
...args: Segments optional
[src]