MCPcopy
hub / github.com/borgbackup/borg / getxattr

Method getxattr

src/borg/fuse.py:665–670  ·  view source on GitHub ↗
(self, inode, name, ctx=None)

Source from the content-addressed store, hash-verified

663
664 @async_wrapper
665 def getxattr(self, inode, name, ctx=None):
666 item = self.get_item(inode)
667 try:
668 return item.get("xattrs", {})[name] or b""
669 except KeyError:
670 raise llfuse.FUSEError(ENOATTR) from None
671
672 @async_wrapper
673 def lookup(self, parent_inode, name, ctx=None):

Callers

nothing calls this directly

Calls 2

get_itemMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected