tests/vfs_fat_ramdisk: Add testcase for .mkdir().
This commit is contained in:
parent
bbe832a0b2
commit
eaa96a7610
@ -60,3 +60,10 @@ assert vfs.listdir() == ['foo_file.txt']
|
|||||||
|
|
||||||
vfs.remove('foo_file.txt')
|
vfs.remove('foo_file.txt')
|
||||||
assert vfs.listdir() == []
|
assert vfs.listdir() == []
|
||||||
|
|
||||||
|
vfs.mkdir("foo_dir")
|
||||||
|
assert vfs.listdir() == ['foo_dir']
|
||||||
|
with vfs.open("foo_dir/file-in-dir.txt", "w") as f:
|
||||||
|
f.write("data in file")
|
||||||
|
|
||||||
|
assert vfs.listdir("foo_dir") == ['file-in-dir.txt']
|
||||||
|
Loading…
Reference in New Issue
Block a user