Exemplo n.º 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))
Exemplo n.º 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))
Exemplo n.º 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
Exemplo n.º 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