MCPcopy Create free account
hub / github.com/comaps/comaps / IsEnoughSpaceForDownload

Function IsEnoughSpaceForDownload

libs/storage/storage_helpers.cpp:27–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27bool IsEnoughSpaceForDownload(MwmSize mwmSize)
28{
29 // Additional size which is necessary to have on flash card to download file of mwmSize bytes.
30 MwmSize constexpr kExtraSizeBytes = 10 * 1024 * 1024;
31 return GetPlatform().GetWritableStorageStatus(mwmSize + kExtraSizeBytes) == Platform::TStorageStatus::STORAGE_OK;
32}
33
34bool IsEnoughSpaceForDownload(CountryId const & countryId, Storage const & storage)
35{

Calls 2

GetNodeAttrsMethod · 0.80

Tested by

no test coverage detected