mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 09:50:15 +01:00
So it can be used on targets without set enabled (or at least not raise a SyntaxError when compiling it). Signed-off-by: Damien George <damien@micropython.org>
24 lines
489 B
Plaintext
24 lines
489 B
Plaintext
listdir("/"): ['subdir']
|
|
listdir("."): ['subdir']
|
|
getcwd() in ("", "/"): True
|
|
chdir("subdir"): None
|
|
getcwd(): /subdir
|
|
mkdir("two"): None
|
|
listdir("/"): ['subdir']
|
|
listdir("/subdir"): ['file.py', 'one', 'two']
|
|
listdir("."): ['file.py', 'one', 'two']
|
|
print('hello')
|
|
hello
|
|
<module 'file' from 'file.py'>
|
|
chdir("/mnt/dir"): None
|
|
getcwd(): /mnt/dir
|
|
chdir("/mnt"): None
|
|
getcwd(): /mnt
|
|
chdir("/"): None
|
|
getcwd(): /
|
|
chdir("/mnt/dir"): None
|
|
getcwd(): /mnt/dir
|
|
chdir(".."): None
|
|
getcwd(): /mnt
|
|
False
|