Open tomayac opened 3 years ago
Thank you for the report! This is indeed working "as intended", due to our peculiar definition of remaining capacity: it's the amount of extra bytes you can write to disk without having to requesting additional capacity.
I agree that we should reconsider this behaviour and / or explain it better.
This may well be working as intended, but it is confusing to me. Files are persisted across reloads and consume storage. When I request capacity, the existing files are not subtracted from that. On the other hand, when I delete a previously created file, I can magically create storage capacity that I haven't requested.
Description of the steps
storageFoundation.getRemainingCapacity()
and note it's 0.storageFoundation.getRemainingCapacity()
and note it's 150.Here's the code: