I find the easiset way to scp a path with spaces is like so:
scp username@host:”‘/this/is my path/with spaces/and this is my file.txt'” ./
Note the double quotes followed by a single qoute ( ” ‘ text ‘ “), and closed in reverse order. Your shell will ignore the double qoute and the remote shell will receive the single qoutes.
You can also escape it, but that’s kind of a pain. example:
scp username@host:/this/is\\ my\\ path/with\\ spaces/and\\ this\\ is\\ my\\ file.txt ./
My preferences is obvious.