public File(string path, FileInfoBase info, LocalFileSource source) { this.Path = path; this.Name = Paths.GetFileNameWithoutExtension(path); this.Type = info; this.Source = source; }
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; }
public Directory(string path, LocalFileSource source) { this.Path = path; this.Name = Paths.GetFileName(path); this.Source = source; }