示例#1
0
 /// <remarks>cache is geregeld door FileEngine die deze aanroep doet</remarks>
 public IEnumerable <IDbItem> GetItems()
 {
     if (_itemsHaveSubContent)
     {
         return(_fileManager.GetDirectories(_atDir).Select(d => new FileBundledItem(_fileManager, d, _cached)).ToList());
     }
     return(_fileManager.GetFiles(_atDir).Select(d => new FileItem(_fileManager, d)).ToList());
 }
示例#2
0
 private IEnumerable <FileSet> GetDirs(string startDir, bool askCached)
 {
     if (!_fileManager.DirExists(startDir))
     {
         return(new List <FileSet>());
     }
     return(_fileManager.GetDirectories(startDir).Select(d => new FileSet(_fileManager, d, askCached)).ToList());
 }