]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
magic_folder: typo utimes -> utime
authorRamakrishnan Muthukrishnan <ram@leastauthority.com>
Mon, 31 Aug 2015 07:21:05 +0000 (12:51 +0530)
committerRamakrishnan Muthukrishnan <ram@leastauthority.com>
Mon, 31 Aug 2015 07:21:05 +0000 (12:51 +0530)
src/allmydata/frontends/magic_folder.py

index 4131c5013c37049f6d36ce9b7cdfa3708bae6b1e..cf8eaa68954fdee860ad105f280f5930be3cbd7b 100644 (file)
@@ -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)
\ No newline at end of file
+        fileutil.rename_no_overwrite(replacement_path, conflict_path)