Ejemplo n.º 1
0
 public LocalDiskAccessFileChain(LocalDiskAccessFileChain_Options options, IFileSystem system)
 {
     Options  = options;
     ColDict  = new Dictionary <string, LocalDiskCollection>();
     DocDict  = new Dictionary <string, LocalDiskDocument>();
     FastRoot = LocalDiskCollection.RequestTracked(new DirectoryInfo(Options.RootPath), this, system, null, ColDict, DocDict);
 }
Ejemplo n.º 2
0
        public Task <ICollection> CreateCollectionAsync(string name, CancellationToken ct)
        {
            name = Uri.UnescapeDataString(name);
            Info.CreateSubdirectory(name);
            string path             = System.IO.Path.Combine(AbsolutePath, name);
            LocalDiskCollection ldc = LocalDiskCollection.RequestTracked(new DirectoryInfo(path), Chain, FileSystem, _Parent, ColDict, DocDict);

            return(Task.FromResult <ICollection>(ldc));
        }