Gets the extension of a path. This method works with the path structure and doesn't check if the path actually exists in the filesystem.
The extension of path or empty string if path doesn't have an extension.
The path to examine.