You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
489 B
23 lines
489 B
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
|
|
|