Mercurial > hg > orthanc
comparison OrthancServer/OrthancRestApi/OrthancRestArchive.cpp @ 2140:aa4b8895cd23
reorganization
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 09 Nov 2016 16:12:47 +0100 |
parents | 9329ba17a069 |
children | 5a8840920121 |
comparison
equal
deleted
inserted
replaced
2139:764c9157301b | 2140:aa4b8895cd23 |
---|---|
545 archive.Apply(stats); | 545 archive.Apply(stats); |
546 | 546 |
547 const bool isZip64 = IsZip64Required(stats.GetUncompressedSize(), stats.GetInstancesCount()); | 547 const bool isZip64 = IsZip64Required(stats.GetUncompressedSize(), stats.GetInstancesCount()); |
548 | 548 |
549 // Create a RAII for the temporary file to manage the ZIP file | 549 // Create a RAII for the temporary file to manage the ZIP file |
550 Toolbox::TemporaryFile tmp; | 550 TemporaryFile tmp; |
551 | 551 |
552 { | 552 { |
553 // Create a ZIP writer | 553 // Create a ZIP writer |
554 HierarchicalZipWriter writer(tmp.GetPath().c_str()); | 554 HierarchicalZipWriter writer(tmp.GetPath().c_str()); |
555 writer.SetZip64(isZip64); | 555 writer.SetZip64(isZip64); |
632 archive.Apply(stats); | 632 archive.Apply(stats); |
633 | 633 |
634 const bool isZip64 = IsZip64Required(stats.GetUncompressedSize(), stats.GetInstancesCount()); | 634 const bool isZip64 = IsZip64Required(stats.GetUncompressedSize(), stats.GetInstancesCount()); |
635 | 635 |
636 // Create a RAII for the temporary file to manage the ZIP file | 636 // Create a RAII for the temporary file to manage the ZIP file |
637 Toolbox::TemporaryFile tmp; | 637 TemporaryFile tmp; |
638 | 638 |
639 { | 639 { |
640 // Create a ZIP writer | 640 // Create a ZIP writer |
641 HierarchicalZipWriter writer(tmp.GetPath().c_str()); | 641 HierarchicalZipWriter writer(tmp.GetPath().c_str()); |
642 writer.SetZip64(isZip64); | 642 writer.SetZip64(isZip64); |