Пример #1
0
 def rmdir(self, path):
     """
     Remove (delete) the directory path. Only works when the directory is
     empty, otherwise, OSError is raised. In order to remove whole
     directory trees, rmtree() can be used.
     """
     ret = api.glfs_rmdir(self.fs, path)
     if ret < 0:
         err = ctypes.get_errno()
         raise OSError(err, os.strerror(err))
Пример #2
0
 def rmdir(self, path):
     """
     Remove (delete) the directory path. Only works when the directory is
     empty, otherwise, OSError is raised. In order to remove whole
     directory trees, rmtree() can be used.
     """
     ret = api.glfs_rmdir(self.fs, path)
     if ret < 0:
         err = ctypes.get_errno()
         raise OSError(err, os.strerror(err))
Пример #3
0
 def rmdir(self, path):
     ret = api.glfs_rmdir(self.fs, path)
     if ret < 0:
         err = ctypes.get_errno()
         raise OSError(err, os.strerror(err))
     return ret
Пример #4
0
 def rmdir(self, path):
     ret = api.glfs_rmdir(self.fs, path)
     if ret < 0:
         err = ctypes.get_errno()
         raise OSError(err, os.strerror(err))
     return ret