~aleteoryx/muditaos

35fb50f605ebb1e02c25cbc508743bfeff21e71f — Lukasz Mastalerz 2 years ago fdede98
[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.
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
@@ 1,1 1,1 @@
Subproject commit 40aa8f3a7e564124ee7637bc55647904a365e30f
Subproject commit c04c7d528f37eed85a010437f96e46384b145e13