From f43d183be8cfafa3c14fafa2b3de887db368fb53 Mon Sep 17 00:00:00 2001 From: Steve Slaven Date: Tue, 3 Nov 2009 14:45:54 -0800 Subject: Only ignore utimens for symlinks diff --git a/FuseArchive/FileSystem.py b/FuseArchive/FileSystem.py index c875230..31470c5 100644 --- a/FuseArchive/FileSystem.py +++ b/FuseArchive/FileSystem.py @@ -132,8 +132,11 @@ class FileSystem(fuse.Fuse): # subsecond preciseness in acces/modify times. # def utimens(self, path, ts_acc, ts_mod): - logging.debug( "Ignoring utimens, hope you like it rsync!" ) -# os.utime("." + path, (ts_acc.tv_sec, ts_mod.tv_sec)) + treefile = "./tree" + path + if os.path.islink( treefile ): + logging.debug( "Ignoring utimens, hope you like it rsync!" ) + else: + os.utime( treefile, (ts_acc.tv_sec, ts_mod.tv_sec)) def access(self, path, mode): if not os.access("./tree" + path, mode): -- cgit v0.10.2