path.parent
Get the parent directory of a DistinctivePath
.
function parent(path: DistinctivePath<[Partition, Segment, Segment, ...Segments]>): DirectoryPath<PartitionedNonEmpty<Partition>>;
function parent(path: DistinctivePath<[Segment, Segment, Segment, ...Segments]>): DirectoryPath<SegmentsNonEmpty>;
function parent(path: DistinctivePath<PartitionedNonEmpty<Partition>>): DirectoryPath<Partitioned<Partition>>;
function parent(path: DistinctivePath<[Partition, Segment]>): DirectoryPath<Partitioned<Partition>>;
§
parent(path: DistinctivePath<[Partition, Segment, Segment, ...Segments]>): DirectoryPath<PartitionedNonEmpty<Partition>>
[src]Get the parent directory of a DistinctivePath
.
§Return Type
§
parent(path: DistinctivePath<[Segment, Segment, Segment, ...Segments]>): DirectoryPath<SegmentsNonEmpty>
[src]§Return Type
§
parent(path: DistinctivePath<PartitionedNonEmpty<Partition>>): DirectoryPath<Partitioned<Partition>>
[src]§Parameters
§Return Type
§
parent(path: DistinctivePath<[Partition, Segment]>): DirectoryPath<Partitioned<Partition>>
[src]§Return Type
§
parent(path: DistinctivePath<Partitioned<Partition>>): DirectoryPath<Segments>
[src]§Parameters
§Return Type
§
parent(path: DistinctivePath<SegmentsNonEmpty>): DirectoryPath<Segments>
[src]§Parameters
§Return Type
§
parent(path: DistinctivePath<[Segment]>): DirectoryPath<[]>
[src]§Parameters
§
path: DistinctivePath<[Segment]>
[src]§Return Type
§
parent(path: DistinctivePath<Segments>): Maybe<DirectoryPath<Segments>>
[src]§Parameters
§
path: DistinctivePath<Segments>
[src]