public async Task DeleteDirectory(string path, CancellationToken token = default) { path = WithBasePath(path); _logger.LogTrace($"Deleting directory {path}"); DataLakeDirectoryClient directoryClient = _fileSystem.GetDirectoryClient(path); await directoryClient.DeleteAsync(cancellationToken : token); }
public async Task DeleteDirectory(string path, CancellationToken token) { path.VerifyNotEmpty(nameof(path)); _logger.LogTrace($"{nameof(DeleteDirectory)} {path}"); DataLakeDirectoryClient directoryClient = _fileSystem.GetDirectoryClient(path); await directoryClient.DeleteAsync(cancellationToken : token); }