ResolutionPolicy type
ResolutionPolicy type
Section titled “ResolutionPolicy type”Policy for resolving how the other argument should be treated.
Signature:
export type ResolutionPolicy = "auto" | "parent" | "exact";Remarks
Section titled “Remarks”Applied by Path.relativeTo and Path.isRelativeTo when computing relationships between concrete paths. Policies extend CPython’s lexical semantics with an optional asynchronous probe for JS module resolution scenarios.
"exact"(default): perform a purely lexical comparison, matching CPython’s behaviour. -"parent": anchor relative operations toother.parentwithout touching the filesystem. -"auto": probe the filesystem to decide whetherothershould be treated as a directory. This may require I/O and therefore produces aPromise.