def removexattr(self, path, key): """ Remove a extended attribute of the file. :param path: Path to the file or directory. :param key: The key of extended attribute. """ ret = api.glfs_removexattr(self.fs, path, key) if ret < 0: err = ctypes.get_errno() raise OSError(err, os.strerror(err))
def removexattr(self, path, key): ret = api.glfs_removexattr(self.fs, path, key) if ret < 0: err = ctypes.get_errno() raise IOError(err, os.strerror(err)) return ret