Throws an exception if the specified path is not a relative path, or if the path contains . or .. path elements.
Path to verify.
Path is invalid.