def force_remove_tree (directory, verbose=0, dry_run=0):
    import distutils
    from distutils.util import grok_environment_error
    _path_created = distutils.dir_util._path_created

    if verbose:
        print "removing '%s' (and everything under it)" % directory
    if dry_run:
        return
    cmdtuples = []
    _build_cmdtuple(directory, cmdtuples)
    for cmd in cmdtuples:
        try:
            cmd[0](cmd[1])
            # remove dir from cache if it's already there
            abspath = os.path.abspath(cmd[1])
            if _path_created.has_key(abspath):
                del _path_created[abspath]
        except (IOError, OSError), exc:
            if verbose:
                print grok_environment_error(
                    exc, "error removing %s: " % directory)
Show detailed information about jobs.
dataset/ETHPy150Open fogleman/FeedNotifier/patch/build_exe.py/force_remove_tree--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/client/gnt_job.py/ShowJobs