示例#1
0
        public async Task <bool> Delete(string path, ETag?eTag = null, CancellationToken token = default)
        {
            path = WithBasePath(path);
            _logger.LogTrace($"Deleting to {path}, ETag={eTag}");

            DataLakeFileClient file     = _fileSystem.GetFileClient(path);
            Response <bool>    response = await file.DeleteIfExistsAsync(cancellationToken : token);

            return(response.Value);
        }
示例#2
0
        public async Task <bool> Delete(string path, CancellationToken token)
        {
            path.VerifyNotEmpty(nameof(path));

            _logger.LogTrace($"{nameof(Delete)} deleting {path}");

            DataLakeFileClient file     = _fileSystem.GetFileClient(path);
            Response <bool>    response = await file.DeleteIfExistsAsync(cancellationToken : token);

            return(response.Value);
        }