Exemplo n.º 1
0
 public UnixFileSystemInfo GetContents()
 {
     ReadLink();
     return(UnixFileSystemInfo.GetFileSystemEntry(
                UnixPath.Combine(UnixPath.GetDirectoryName(FullPath),
                                 ContentsPath)));
 }
Exemplo n.º 2
0
 public static string GetRealPath(string path)
 {
     while (true)
     {
         string str = UnixPath.ReadSymbolicLink(path);
         if (str == null)
         {
             break;
         }
         if (!UnixPath.IsPathRooted(str))
         {
             path = string.Concat(UnixPath.GetDirectoryName(path), UnixPath.DirectorySeparatorChar, str);
             path = UnixPath.GetCanonicalPath(path);
         }
         else
         {
             path = str;
         }
     }
     return(path);
 }
 public UnixFileSystemInfo GetContents()
 {
     this.ReadLink();
     return(UnixFileSystemInfo.GetFileSystemEntry(UnixPath.Combine(UnixPath.GetDirectoryName(base.FullPath), new string[] { this.ContentsPath })));
 }