mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-25 15:19:21 +01:00
fix: remove executable flag and change back to 100644 (was 100755) Signed-off-by: Roger Meier <r.meier@siemens.com>
39 lines
630 B
C++
39 lines
630 B
C++
//
|
|
// Rename.cpp
|
|
//
|
|
// $Id: //poco/1.4/Zip/src/Rename.cpp#1 $
|
|
//
|
|
// Library: Zip
|
|
// Package: Manipulation
|
|
// Module: Rename
|
|
//
|
|
// Copyright (c) 2007, Applied Informatics Software Engineering GmbH.
|
|
// and Contributors.
|
|
//
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
//
|
|
|
|
|
|
#include "Poco/Zip/Rename.h"
|
|
#include "Poco/Zip/Compress.h"
|
|
|
|
|
|
namespace Poco {
|
|
namespace Zip {
|
|
|
|
|
|
Rename::Rename(const ZipLocalFileHeader& hdr, const std::string& newZipEntryName):
|
|
_hdr(hdr),
|
|
_newZipEntryName(newZipEntryName)
|
|
{
|
|
}
|
|
|
|
|
|
void Rename::execute(Compress& c, std::istream& input)
|
|
{
|
|
c.addFileRaw(input, _hdr, _newZipEntryName);
|
|
}
|
|
|
|
|
|
} } // namespace Poco::Zip
|