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.
path.getExtension("/path/to/file.txt"); // returns ".txt"path.getExtension("/path/to/file.jpg"); // returns ".jpg"path.getExtension("/path/to/file.txt?function=getExtension"); // returns ".txt" Copy
path.getExtension("/path/to/file.txt"); // returns ".txt"path.getExtension("/path/to/file.jpg"); // returns ".jpg"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.