nithir revised this gist . Go to revision
1 file changed, 0 insertions, 0 deletions
espace_dispo.micropython renamed to espace_dispo.py
File renamed without changes
nithir revised this gist . Go to revision
1 file changed, 0 insertions, 0 deletions
espace_dispo.py renamed to espace_dispo.micropython
File renamed without changes
nithir revised this gist . Go to revision
1 file changed, 5 insertions
espace_dispo.py(file created)
| @@ -0,0 +1,5 @@ | |||
| 1 | + | import uos | |
| 2 | + | fs_stat = uos.statvfs('/') | |
| 3 | + | fs_size = fs_stat[0] * fs_stat[2] | |
| 4 | + | fs_free = fs_stat[0] * fs_stat[3] | |
| 5 | + | print("File System Size {:,} - Free Space {:,}".format(fs_size, fs_free)) | |