mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
tests/vfs_fat_ramdisk: Add testcase for .rename().
This commit is contained in:
@@ -68,3 +68,6 @@ f.write("data in file")
|
||||
f.close()
|
||||
|
||||
assert vfs.listdir("foo_dir") == ['file-in-dir.txt']
|
||||
|
||||
vfs.rename("foo_dir/file-in-dir.txt", "moved-to-root.txt")
|
||||
assert vfs.listdir() == ['foo_dir', 'moved-to-root.txt']
|
||||
|
||||
Reference in New Issue
Block a user