This commit is contained in:
@ -177,7 +177,7 @@ encrypting_reader::encrypting_reader(
|
|||||||
token)),
|
token)),
|
||||||
stop_requested_(stop_requested),
|
stop_requested_(stop_requested),
|
||||||
error_return_(error_return),
|
error_return_(error_return),
|
||||||
source_file_(utils::file::file::open_or_create_file(source_path)) {
|
source_file_(utils::file::file::open_or_create_file(source_path, true)) {
|
||||||
if (not source_file_) {
|
if (not source_file_) {
|
||||||
throw std::runtime_error("file open failed|src|" +
|
throw std::runtime_error("file open failed|src|" +
|
||||||
std::string{source_path});
|
std::string{source_path});
|
||||||
@ -224,7 +224,7 @@ encrypting_reader::encrypting_reader(std::string_view encrypted_file_path,
|
|||||||
token)),
|
token)),
|
||||||
stop_requested_(stop_requested),
|
stop_requested_(stop_requested),
|
||||||
error_return_(error_return),
|
error_return_(error_return),
|
||||||
source_file_(utils::file::file::open_or_create_file(source_path)) {
|
source_file_(utils::file::file::open_or_create_file(source_path, true)) {
|
||||||
if (not source_file_) {
|
if (not source_file_) {
|
||||||
throw std::runtime_error("file open failed|src|" +
|
throw std::runtime_error("file open failed|src|" +
|
||||||
std::string{source_path});
|
std::string{source_path});
|
||||||
@ -261,7 +261,7 @@ encrypting_reader::encrypting_reader(
|
|||||||
token)),
|
token)),
|
||||||
stop_requested_(stop_requested),
|
stop_requested_(stop_requested),
|
||||||
error_return_(error_return),
|
error_return_(error_return),
|
||||||
source_file_(utils::file::file::open_or_create_file(source_path)) {
|
source_file_(utils::file::file::open_or_create_file(source_path, true)) {
|
||||||
if (not source_file_) {
|
if (not source_file_) {
|
||||||
throw std::runtime_error("file open failed|src|" +
|
throw std::runtime_error("file open failed|src|" +
|
||||||
std::string{source_path});
|
std::string{source_path});
|
||||||
@ -289,7 +289,7 @@ encrypting_reader::encrypting_reader(const encrypting_reader &reader)
|
|||||||
stop_requested_(reader.stop_requested_),
|
stop_requested_(reader.stop_requested_),
|
||||||
error_return_(reader.error_return_),
|
error_return_(reader.error_return_),
|
||||||
source_file_(
|
source_file_(
|
||||||
utils::file::file::open_file(reader.source_file_.get_path())),
|
utils::file::file::open_file(reader.source_file_.get_path(), true)),
|
||||||
chunk_buffers_(reader.chunk_buffers_),
|
chunk_buffers_(reader.chunk_buffers_),
|
||||||
encrypted_file_name_(reader.encrypted_file_name_),
|
encrypted_file_name_(reader.encrypted_file_name_),
|
||||||
encrypted_file_path_(reader.encrypted_file_path_),
|
encrypted_file_path_(reader.encrypted_file_path_),
|
||||||
|
Reference in New Issue
Block a user