public LocalDiskEntry(FileSystemInfo info, LocalDiskAccessFileChain chain, IFileSystem system, LocalDiskCollection parent = null, IDictionary <string, LocalDiskCollection> colDict = null, IDictionary <string, LocalDiskDocument> docDict = null) { FileSystemInfo = info; ColDict = colDict; DocDict = docDict; Chain = chain; FileSystem = system; _Parent = parent; //if(name.Contains(".txt")) { // int i = 0; //} }
public static LocalDiskCollection RequestTracked(DirectoryInfo di, LocalDiskAccessFileChain chain, IFileSystem fileSystem, LocalDiskCollection localDiskCollection, IDictionary <string, LocalDiskCollection> colDict, IDictionary <string, LocalDiskDocument> docDict) { LocalDiskCollection ret; string name = di.FullName.ScrubPath(); if (colDict != null && colDict.ContainsKey(name)) { ret = colDict[name]; } else { ret = new LocalDiskCollection(di, chain, fileSystem, localDiskCollection, colDict, docDict); if (colDict != null) { colDict.Add(ret.AbsolutePath, ret); } } ret.FileSystemInfo.Refresh(); return(ret); }
public LocalDiskCollection(DirectoryInfo info, LocalDiskAccessFileChain chain, IFileSystem system, LocalDiskCollection parent, IDictionary <string, LocalDiskCollection> colDict, IDictionary <string, LocalDiskDocument> docDict) : base(info, chain, system, parent, colDict, docDict) { }
private LocalDiskCollection(string path, LocalDiskAccessFileChain chain, IFileSystem system, LocalDiskCollection parent = null, IDictionary <string, LocalDiskCollection> colDict = null, IDictionary <string, LocalDiskDocument> docDict = null) : this(new DirectoryInfo(path), chain, system, parent, colDict, docDict) { }