mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 21:43:09 +00:00
magic_folder: typo utimes -> utime
This commit is contained in:
parent
f113db62ac
commit
ef3cdd7db1
@ -561,7 +561,7 @@ class Downloader(QueueMixin):
|
||||
now = time.time()
|
||||
|
||||
fileutil.write(replacement_path, file_contents)
|
||||
os.utimes(replacement_path, (now, now - cls.FUDGE_SECONDS))
|
||||
os.utime(replacement_path, (now, now - cls.FUDGE_SECONDS))
|
||||
if is_conflict:
|
||||
cls._rename_conflicted_file(path, replacement_path)
|
||||
else:
|
||||
@ -573,4 +573,4 @@ class Downloader(QueueMixin):
|
||||
@classmethod
|
||||
def _rename_conflicted_file(self, path, replacement_path):
|
||||
conflict_path = path + u".conflict"
|
||||
fileutil.rename_no_overwrite(replacement_path, conflict_path)
|
||||
fileutil.rename_no_overwrite(replacement_path, conflict_path)
|
||||
|
Loading…
Reference in New Issue
Block a user