예제 #1
0
    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))
예제 #2
0
    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))
예제 #3
0
 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
예제 #4
0
 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