NuGet.SharedPackageRepository.NormalizePath C# (CSharp) Method

NormalizePath() private method

private NormalizePath ( string path ) : string
path string
return string
        private string NormalizePath(string path)
        {
            if (String.IsNullOrEmpty(path))
            {
                return path;
            }

            if (Path.IsPathRooted(path))
            {
                string root = PathUtility.EnsureTrailingSlash(FileSystem.Root);
                return PathUtility.GetRelativePath(root, path);
            }
            return path;
        }
    }