public FileInformation FileInfoForPath(string path) { PboFSNode node = this.fileTreeLookup[path]; if (this.fileTreeLookup.TryGetValue(path, out node)) { return(node.FileInformation); } return(new FileInformation()); }
public IList <FileInformation> FilesForPath(string path) { PboFSNode node = this.fileTreeLookup[path]; if (node.GetType() == typeof(PboFSFolder)) { return(((PboFSFolder)node).Children.Values.Select(f => f.FileInformation).ToList()); } return(new FileInformation[0]); }