Esempio n. 1
0
 public UnixFileSystemInfo GetContents()
 {
     ReadLink();
     return(UnixFileSystemInfo.GetFileSystemEntry(
                UnixPath.Combine(UnixPath.GetDirectoryName(FullPath),
                                 ContentsPath)));
 }
 private UnixFileSystemInfo[] GetFileSystemEntries(Dirent[] dentries)
 {
     UnixFileSystemInfo[] fileSystemEntry = new UnixFileSystemInfo[(int)dentries.Length];
     for (int i = 0; i != (int)fileSystemEntry.Length; i++)
     {
         fileSystemEntry[i] = UnixFileSystemInfo.GetFileSystemEntry(UnixPath.Combine(base.FullPath, new string[] { dentries[i].d_name }));
     }
     return(fileSystemEntry);
 }
 private UnixFileSystemInfo[] GetFileSystemEntries(Native.Dirent[] dentries)
 {
     UnixFileSystemInfo[] entries = new UnixFileSystemInfo[dentries.Length];
     for (int i = 0; i != entries.Length; ++i)
     {
         entries [i] = UnixFileSystemInfo.GetFileSystemEntry(
             UnixPath.Combine(FullPath, dentries[i].d_name));
     }
     return(entries);
 }
Esempio n. 4
0
 public UnixFileSystemInfo CreateLink(string path)
 {
     UnixMarshal.ThrowExceptionForLastErrorIf(Syscall.link(this.FullName, path));
     return(UnixFileSystemInfo.GetFileSystemEntry(path));
 }
 public UnixFileSystemInfo GetContents()
 {
     this.ReadLink();
     return(UnixFileSystemInfo.GetFileSystemEntry(UnixPath.Combine(UnixPath.GetDirectoryName(base.FullPath), new string[] { this.ContentsPath })));
 }