Beispiel #1
0
 protected String PathToRealPath(AbstractPath path)
 {
     String rawPath = path.ToString();
     return Path.Combine(this.RootPath, rawPath.Substring(1));
 }
Beispiel #2
0
        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) + "/";
        }
Beispiel #3
0
 private AbstractPath TranslatePathFromBaseSystem(AbstractPath path)
 {
     if (path is DirectoryPath)
         return TranslatePathFromBaseSystem((DirectoryPath)path);
     else
         return TranslatePathFromBaseSystem((FilePath) path);
 }