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