Remove the last slash from a path, if the last character is a slash.
The path to remove the last slash from.
The path without a trailing slash.
Remove the last slash from a path, if the last character is a slash.