Return the path without file name. If path is relative path, start with period.
The full path to process.
The path without a last element from list split by slash.
pc.path.extractPath("path/to/file.txt"); // returns "./path/to"pc.path.extractPath("./path/to/file.txt"); // returns "./path/to"pc.path.extractPath("../path/to/file.txt"); // returns "../path/to"pc.path.extractPath("/path/to/file.txt"); // returns "/path/to" Copy
pc.path.extractPath("path/to/file.txt"); // returns "./path/to"pc.path.extractPath("./path/to/file.txt"); // returns "./path/to"pc.path.extractPath("../path/to/file.txt"); // returns "../path/to"pc.path.extractPath("/path/to/file.txt"); // returns "/path/to"
Return the path without file name. If path is relative path, start with period.