DotNetIO.Path.GetPathWithoutRoot C# (CSharp) Method

GetPathWithoutRoot() private method

private GetPathWithoutRoot ( string path ) : string
path string
return string
        public static string GetPathWithoutRoot(string path)
        {
            Contract.Requires(path != null);

            if (path.Length == 0) return string.Empty;
            var startIndex = GetPathRoot(path).Length;
            if (path.Length < startIndex) return string.Empty;
            return path.Substring(startIndex);
        }