[Fixed]-Fabric check of existing folder and make new one

1👍

I did it like this:

backup = env.path + '_bkup'
print backup
if exists(env.path):
    if exists(backup):
        sudo('rm -rf {}'.format(backup))
    sudo('mv {} {}'.format(env.path, backup))
👤varad

Leave a comment