(name, quiet = True)
Remove the specified directory.
Remove the specified directory.
Remove the specified directory .
def remove_dir(name, quiet = True):
    """ Remove the specified directory. """
    try:
        if path_exists(name):
            shutil.rmtree(name)
            if not quiet:
                sys.stdout.write('Removing '+name+' directory.\n')
    except IOError, (errno, strerror):
        sys.stderr.write('Failed to remove directory '+name+': '+strerror)
        raise
def remove_dir ( name , quiet = True ) : try : if path_exists ( name ) : shutil . rmtree ( name ) if not quiet : sys . stdout . write ( 'Removing ' + name + ' directory.\n' ) except IOError , ( errno , strerror ) : sys . stderr . write ( 'Failed to remove directory ' + name + ': ' + strerror ) raise