diff options
author | Steve Slaven <bpk@hoopajoo.net> | 2009-11-03 22:45:54 (GMT) |
---|---|---|
committer | Steve Slaven <bpk@hoopajoo.net> | 2009-11-03 22:45:54 (GMT) |
commit | f43d183be8cfafa3c14fafa2b3de887db368fb53 (patch) | |
tree | 7a372ce1f6a92e7360cbe5dfc23204254391c350 /FuseArchive | |
parent | 74e9f02472be4fedcfc90cee2c73333f579c67bb (diff) | |
download | fusearchive-f43d183be8cfafa3c14fafa2b3de887db368fb53.zip fusearchive-f43d183be8cfafa3c14fafa2b3de887db368fb53.tar.gz fusearchive-f43d183be8cfafa3c14fafa2b3de887db368fb53.tar.bz2 |
Only ignore utimens for symlinks
Diffstat (limited to 'FuseArchive')
-rw-r--r-- | FuseArchive/FileSystem.py | 7 |
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): |