aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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):