Exemple #1
0
        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;
            //}
        }
Exemple #2
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);
        }
Exemple #3
0
 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)
 {
 }
Exemple #4
0
 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)
 {
 }