[CP-1942] Re-adding the same file results in an increase in the amount of occupied space Fixed problem with adding files with the same name resulting in increasing its size instead of replacing the file. USB Stack changes.
2 files changed, 2 insertions(+), 2 deletions(-) M module-services/service-desktop/endpoints/filesystem/FileContext.cpp M third-party/usb_stack
M module-services/service-desktop/endpoints/filesystem/FileContext.cpp => module-services/service-desktop/endpoints/filesystem/FileContext.cpp +1 -1
@@ 35,7 35,7 @@ FileWriteContext::FileWriteContext(const std::filesystem::path &path, std::string crc32Digest, std::size_t offset) : FileContext(path, size, chunkSize, offset), crc32Digest(std::move(crc32Digest)), file(path, std::ios::binary | std::ios::app) file(path, std::ios::binary | std::ios::out) {} FileWriteContext::~FileWriteContext()
M third-party/usb_stack => third-party/usb_stack +1 -1