public void RemoveItem(FileSystemInfoContract target, bool recurse) { ExecuteInSemaphore(() => { if (!(target is ProxyFileInfoContract)) { _gateway.RemoveItem(_rootName, target.Id, recurse); } }, nameof(RemoveItem), true); }
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); }
void IDisposable.Dispose() { gateway.RemoveItem(root, directory.Id, true); }
void IDisposable.Dispose() { _gateway.RemoveItem(_root, _directory.Id, true); }
public void RemoveItem(FileSystemInfoContract target, bool recurse) { gateway.RemoveItem(rootName, target.Id, recurse); InvalidateDrive(); }
public void Dispose() { gateway.RemoveItem(root, directory.Id, true); }