PurePath.drive property
pathlib-ts > PurePath > drive
PurePath.drive property
Section titled “PurePath.drive property”Gets the drive prefix for Windows-style paths, or an empty string on POSIX.
Signature:
get drive(): string;Remarks
Section titled “Remarks”UNC shares are treated as drives. On non-Windows parsers this value is always empty unless manually constructed via PureWindowsPath.