1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-27 10:18:12 +00:00

Add missing attribute to FUSE entries

This commit is contained in:
Julien Lamy 2019-09-22 17:12:01 +02:00
parent 310cf9fc54
commit cfa76e066b

View file

@ -556,10 +556,12 @@ def getattr(self, inode, ctx=None):
entry.st_mtime_ns = mtime_ns entry.st_mtime_ns = mtime_ns
entry.st_atime_ns = item.get('atime', mtime_ns) entry.st_atime_ns = item.get('atime', mtime_ns)
entry.st_ctime_ns = item.get('ctime', mtime_ns) entry.st_ctime_ns = item.get('ctime', mtime_ns)
entry.st_birthtime_ns = item.get('birthtime', mtime_ns)
else: else:
entry.st_mtime = mtime_ns / 1e9 entry.st_mtime = mtime_ns / 1e9
entry.st_atime = item.get('atime', mtime_ns) / 1e9 entry.st_atime = item.get('atime', mtime_ns) / 1e9
entry.st_ctime = item.get('ctime', mtime_ns) / 1e9 entry.st_ctime = item.get('ctime', mtime_ns) / 1e9
entry.st_birthtime = item.get('birthtime', mtime_ns) / 1e9
return entry return entry
def listxattr(self, inode, ctx=None): def listxattr(self, inode, ctx=None):