API get() fails for path containing space #882

Closed
bitaxis opened this Issue Apr 4, 2013 · 0 comments

Projects

None yet

1 participant

@bitaxis
bitaxis commented Apr 4, 2013

Hi. One of my tasks makes this call:

with cd('/somewhere'), cd('some directory'):
    get('remote-file.txt', 'local-file.txt')

If the full path to remote-file.txt has space(s) in it, the operation fails with the error

Fatal error: get() encountered an exception while downloading '/somewhere/some\ directory/remote-file.txt'

Underlying exception:
    No such file

I double-checked that the file is there on the server I am grabbing it from. Also, if I get rid of the space by renaming the directory, then the operation works.

So I think this may be a bug.

I am running Fabric 1.6.0 on Windows Server 2008 R2 (64-bit) hitting RHEL 5 servers.

@offbyone offbyone added a commit to offbyone/fabric that referenced this issue Apr 23, 2013
@offbyone offbyone Fix #882 - API get() fails for path containing space 6d5053e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment