mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 05:13:16 -07:00
Update vendored windows libs
This commit is contained in:
parent
f61c211655
commit
b1cefa94e5
226 changed files with 33472 additions and 11882 deletions
10
libs/win/incubator/replace-file.py
Normal file
10
libs/win/incubator/replace-file.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
from jaraco.windows.api.filesystem import ReplaceFile
|
||||
|
||||
open('orig-file', 'w').write('some content')
|
||||
open('replacing-file', 'w').write('new content')
|
||||
ReplaceFile('orig-file', 'replacing-file', 'orig-backup', 0, 0, 0)
|
||||
assert open('orig-file').read() == 'new content'
|
||||
assert open('orig-backup').read() == 'some content'
|
||||
import os
|
||||
|
||||
assert not os.path.exists('replacing-file')
|
Loading…
Add table
Add a link
Reference in a new issue