コード例 #1
0
        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);
        }
コード例 #2
0
        private void WriteDatacardZipFile(string id, byte[] bytes)
        {
            var datacardPath = _datacardPath.GetZipFilePath(id);

            _fileSystem.WriteAllBytes(datacardPath, bytes);
        }