コード例 #1
0
ファイル: CloudDrive.cs プロジェクト: zhang024/DokanCloudFS
 public IEnumerable <FileSystemInfoContract> GetChildItem(DirectoryInfoContract parent)
 {
     return(ExecuteInSemaphore(() => {
         return gateway.GetChildItem(rootName, parent.Id).Select(item => {
             FixupSize(item, id => gateway.GetContent(rootName, id));
             return item;
         });
     }, nameof(GetChildItem)));
 }
コード例 #2
0
            private TestDirectoryFixture(ICloudGateway gateway, RootName root, string apiKey, IDictionary <string, string> parameters, string path)
            {
                this.gateway = gateway;
                this.root    = root;

                gateway.GetDrive(root, apiKey, parameters);
                var rootDirectory = gateway.GetRoot(root, apiKey, parameters);

                var residualDirectory = gateway.GetChildItem(root, rootDirectory.Id).SingleOrDefault(f => f.Name == path) as DirectoryInfoContract;

                if (residualDirectory != null)
                {
                    gateway.RemoveItem(root, residualDirectory.Id, true);
                }

                directory = gateway.NewDirectoryItem(root, rootDirectory.Id, path);
            }
コード例 #3
0
 public IEnumerable <FileSystemInfoContract> GetChildItem(DirectoryInfoContract parent)
 {
     return(ExecuteInSemaphore(() => {
         return _gateway.GetChildItem(_rootName, parent.Id);
     }, nameof(GetChildItem)));
 }
コード例 #4
0
 public IEnumerable <FileSystemInfoContract> GetChildItem(DirectoryInfoContract parent)
 {
     return(gateway.GetChildItem(rootName, parent.Id));
 }