aboutsummaryrefslogtreecommitdiffstats
path: root/FuseArchive
diff options
context:
space:
mode:
authorSteve Slaven <bpk@hoopajoo.net>2009-11-03 22:45:54 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2009-11-03 22:45:54 (GMT)
commitf43d183be8cfafa3c14fafa2b3de887db368fb53 (patch)
tree7a372ce1f6a92e7360cbe5dfc23204254391c350 /FuseArchive
parent74e9f02472be4fedcfc90cee2c73333f579c67bb (diff)
downloadfusearchive-f43d183be8cfafa3c14fafa2b3de887db368fb53.zip
fusearchive-f43d183be8cfafa3c14fafa2b3de887db368fb53.tar.gz
fusearchive-f43d183be8cfafa3c14fafa2b3de887db368fb53.tar.bz2
Only ignore utimens for symlinks
Diffstat (limited to 'FuseArchive')
-rw-r--r--FuseArchive/FileSystem.py7
1 files changed, 5 insertions, 2 deletions
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):