fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fab-user] Spaces/characters not escaping properly


From: John Harris
Subject: [Fab-user] Spaces/characters not escaping properly
Date: Fri, 26 Jul 2013 17:56:44 +0100

I'm trying to switch to a local folder then copy that to a remote machine. I'm experiencing the following issue:


def cp_file():
    with lcd("C:\Users\John\Some Folder\training"):
        put('this', '/usr/something/somethingelse', use_sudo=True)

ValueError: 'C:\Users\John\Some\ Folder raining\this' is not a valid local path or glob.

### then tried > ####

def cp_file():
    with lcd("C:\Users\John\Some Folder\\training"):
        put('this', '/usr/something/somethingelse', use_sudo=True)

ValueError: 'C:\Users\John\Some\ Folder\training\this' is not a valid local path or glob.

Any help would be much appreciated, 

John

reply via email to

[Prev in Thread] Current Thread [Next in Thread]