protected String PathToRealPath(AbstractPath path) { String rawPath = path.ToString(); return Path.Combine(this.RootPath, rawPath.Substring(1)); }
protected String PathToStringPath(AbstractPath path) { String[] components = new String[path.RawPathSegments.Length + 1]; components[0] = this.RootPath; path.RawPathSegments.CopyTo(components, 1); return System.IO.Path.Combine(components) + "/"; }
private AbstractPath TranslatePathFromBaseSystem(AbstractPath path) { if (path is DirectoryPath) return TranslatePathFromBaseSystem((DirectoryPath)path); else return TranslatePathFromBaseSystem((FilePath) path); }