circuitpython/tests/extmod/vfs_fat_fileio.py.exp
Damien George b7df3e541a extmod/vfs_fat: Implement POSIX behaviour of rename, allow to overwrite.
If the destination of os.rename() exists then it will be overwritten if it
is a file.  This is the POSIX behaviour, which is also the CPython
behaviour, and so we follow suit.

See issue #2598 for discussion.
2016-12-02 15:06:09 +11:00

25 lines
284 B
Plaintext

<io.TextIOWrapper >
True
True
True
True
hello!world!
12
h
e
True
d
True
True
True
True
True
b'data in file'
True
['sub_file.txt', 'file.txt']
['foo_file.txt', 'foo_dir', 'moved-to-root.txt']
['foo_file.txt', 'foo_dir', 'moved-to-root.txt']
new text
['moved-to-root.txt']
ENOSPC: True