Пример #1
0
 protected UnixFileSystemInfo(string path)
 {
     UnixPath.CheckPath(path);
     this.originalPath = path;
     this.fullPath     = UnixPath.GetFullPath(path);
     Refresh(true);
 }
Пример #2
0
        public static string GetDirectoryName(string path)
        {
            UnixPath.CheckPath(path);
            int num = path.LastIndexOf(UnixPath.DirectorySeparatorChar);

            if (num > 0)
            {
                return(path.Substring(0, num));
            }
            if (num == 0)
            {
                return("/");
            }
            return(string.Empty);
        }