We could use shutil.disk_usage() to get the free disk space. A sample code would be:
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: