(path)
Empties a (possibly non-existent) directory
Empties a (possibly non-existent) directory
Empties a ( possibly non - existent ) directory
def clean_dir(path):
        """Empties a (possibly non-existent) directory"""
        if os.path.exists(path):
            shutil.rmtree(path)
        os.mkdir(path)
def clean_dir ( path ) : if os . path . exists ( path ) : shutil . rmtree ( path ) os . mkdir ( path )