Пример #1
0
 public File(string path, FileInfoBase info, LocalFileSource source)
 {
     this.Path   = path;
     this.Name   = Paths.GetFileNameWithoutExtension(path);
     this.Type   = info;
     this.Source = source;
 }
Пример #2
0
            public Directory(string path, LocalFileSource source)
            {
                while (path.EndsWith('\\'))
                {
                    path = path.Substring(0, path.Length - 1);
                }

                this.Path   = path;
                this.Name   = Paths.GetFileName(path);
                this.Source = source;
            }
Пример #3
0
 public Directory(string path, LocalFileSource source)
 {
     this.Path   = path;
     this.Name   = Paths.GetFileName(path);
     this.Source = source;
 }