Add support for streaming archive writing and unknown filesizes in zip files
This commit is contained in:
@@ -74,6 +74,12 @@ namespace OpenVulkano
|
||||
return m_writer->AddFile(fileName, inArchiveName);
|
||||
}
|
||||
|
||||
ArchiveOStream MultiPartArchiveWriter::AddFileStream(const FileDescription& description)
|
||||
{ //TODO handle zip splits
|
||||
CheckSize(description.size);
|
||||
return m_writer->AddFileStream(description);
|
||||
}
|
||||
|
||||
void MultiPartArchiveWriter::Move(const std::filesystem::path& newDir)
|
||||
{
|
||||
bool hasToMove = m_archives.size() > 1 || m_writer->GetTotalWrittenBytes() > 0;
|
||||
|
||||
Reference in New Issue
Block a user