Return the extension of the path. Pop the last value of a list after path is split by question mark and comma.
The path to process.
The extension.
pc.path.getExtension("/path/to/file.txt"); // returns ".txt"pc.path.getExtension("/path/to/file.jpg"); // returns ".jpg"pc.path.getExtension("/path/to/file.txt?function=getExtension"); // returns ".txt" Copy
pc.path.getExtension("/path/to/file.txt"); // returns ".txt"pc.path.getExtension("/path/to/file.jpg"); // returns ".jpg"pc.path.getExtension("/path/to/file.txt?function=getExtension"); // returns ".txt"
Return the extension of the path. Pop the last value of a list after path is split by question mark and comma.