public void FastDfsOperation(string groupName, string filePath, string fileExt) { var storageNode = _client.GetStorageNode(groupName); var uploadFile = File.ReadAllBytes(filePath); var fileName = _client.UploadFile(storageNode, uploadFile, fileExt); var downloadFile = _client.DownloadFile(storageNode, fileName); _client.RemoveFile(groupName, fileName); Assert.Equal(Md5Helper.Get32Md5(uploadFile), Md5Helper.Get32Md5(downloadFile)); }
public void RemoveFile(string dfsFileName) { _repository?.DeleteByDfsFileName(dfsFileName); _fastDfsClient.RemoveFile(_groupName, dfsFileName); }