Example #1
0
        public FileInformation FileInfoForPath(string path)
        {
            PboFSNode node = this.fileTreeLookup[path];

            if (this.fileTreeLookup.TryGetValue(path, out node))
            {
                return(node.FileInformation);
            }

            return(new FileInformation());
        }
Example #2
0
        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]);
        }