private string ExtractDatacard(string datacardId) { var destination = _datacardPath.GetExtractPath(datacardId); if (_fileSystem.DirectoryExists(destination)) { return(destination); } var zipFilePath = _datacardPath.GetZipFilePath(datacardId); _fileSystem.ExtractZip(zipFilePath, destination); return(destination); }
private void WriteDatacardZipFile(string id, byte[] bytes) { var datacardPath = _datacardPath.GetZipFilePath(id); _fileSystem.WriteAllBytes(datacardPath, bytes); }