diff options
author | Damien George <damien.p.george@gmail.com> | 2017-06-07 15:17:45 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-06-07 15:17:45 +1000 |
commit | f6ef8e3f17222a397e02f93a8b0d283e0f6c9793 (patch) | |
tree | 05fe7ce2f89ee241251cef5a7f6ae820ad1737c9 /tests/extmod/vfs_basic.py | |
parent | 551a7317554b84651b0c3fd97f495753c17042ad (diff) | |
download | micropython-f6ef8e3f17222a397e02f93a8b0d283e0f6c9793.tar.gz micropython-f6ef8e3f17222a397e02f93a8b0d283e0f6c9793.zip |
extmod/vfs: Allow to statvfs the root directory.
Diffstat (limited to 'tests/extmod/vfs_basic.py')
-rw-r--r-- | tests/extmod/vfs_basic.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/extmod/vfs_basic.py b/tests/extmod/vfs_basic.py index a3b2f3c29b..fc016b8d5a 100644 --- a/tests/extmod/vfs_basic.py +++ b/tests/extmod/vfs_basic.py @@ -57,6 +57,9 @@ for path in uos.listdir('/'): # stat root dir print(uos.stat('/')) +# statvfs root dir +print(uos.statvfs('/')) + # getcwd when in root dir print(uos.getcwd()) @@ -128,6 +131,8 @@ except OSError: # root dir uos.mount(Filesystem(3), '/') +print(uos.stat('/')) +print(uos.statvfs('/')) print(uos.listdir()) open('test') |