b7df3e541a
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.
25 lines
284 B
Plaintext
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
|