sftp.py (line 109):
def mkdir(self, path, use_sudo):
from fabric.api import sudo, hide
if use_sudo:
with hide('everything'):
sudo('mkdir %s' % path)
The issue here is that if use_sudo=True then mkdir will break if path contains spaces. I changed it to:
def mkdir(self, path, use_sudo):
from fabric.api import sudo, hide
if use_sudo:
with hide('everything'):
sudo('mkdir "%s"' % path)
Now it works OK. Untested but solved my issue, may cause problems for others.
sftp.py (line 109):
The issue here is that if
use_sudo=Truethen mkdir will break if path contains spaces. I changed it to:Now it works OK. Untested but solved my issue, may cause problems for others.