ServerToLocalPath() public static method

public static ServerToLocalPath ( string path ) : string
path string
return string
        public string GetLocalPathForServerPath(VersionControlPath serverItem)
        {
            var mappedFolder = Folders.FirstOrDefault(f => serverItem.IsChildOrEqualTo(f.ServerItem));

            if (mappedFolder == null)
            {
                return(null);
            }
            if (serverItem == mappedFolder.ServerItem)
            {
                return(mappedFolder.LocalItem);
            }
            else
            {
                //string rest = TfsPath.ServerToLocalPath(serverItem.ToString().Substring(mappedFolder.ServerItem.ToString().Length + 1));
                string rest = TfsPath.ServerToLocalPath(serverItem.ChildPart(mappedFolder.ServerItem));
                return(Path.Combine(mappedFolder.LocalItem, rest));
            }
        }