We could use shutil.disk_usage() to get the free disk space. A sample code would be:
shutil.disk_usage(path).free
That information could be displayed at those GUI steps:
- when adding an account, when a local folder is selected
- in the Accounts settings, next to the local folder
The information would be printed in green until the value is lower than XX MiB (TBD), it will then be displayed in red.
The information could be used later when syncing: before any download, check the disk free space and do the download when there is enough space. But this will be done in a specific ticket.
Adding mockups on zeplin here:
- causes
-
NXDRIVE-2162 Enforce disk space retrieval robustness
- Resolved
- is required by
-
NXDRIVE-2043 Check thee free disk space before downloading files
- Open