Path.isRelativeTo property
pathlib-ts > Path > isRelativeTo
Path.isRelativeTo property
Section titled “Path.isRelativeTo property”Determines whether this path can be expressed relative to another according to the selected policy.
Signature:
isRelativeTo: PathIsRelativeToFn;Remarks
Section titled “Remarks”Policies mirror Path.relativeTo. policy: "auto" triggers asynchronous I/O to validate the anchor, so the method returns a promise in that case. Use this before attempting a relative conversion to avoid handling exceptions.