On Wed, Jun 15, 2011 at 08:49:57 +0200, Alexander Hall wrote: > On 06/15/11 05:34, Corey wrote: > > On 06/14/2011 04:52 AM, LEVAI Daniel wrote: > >> Hi! > >> > >> > >> Uploading a directory recursively fails if it doesn't exist on the > >> remote site: > >> > >> sftp> put -r nonexistent\ directory/ > >> Uploading nonexistent directory/ to /tmp/nonexistent directory > >> Couldn't canonicalise: No such file or directory > >> sftp> mkdir nonexistent\ directory/ > >> sftp> put -r nonexistent\ directory/ > >> ^^^ success > >> > >> It should create the directory first, and then copy the content, no? > >> This is on -current: > >> $ ssh -V > >> OpenSSH_5.8, OpenSSL 1.0.0a 1 Jun 2010 > >> > >> > >> Daniel > >> > > Did you try doing it with a directory without a space in it? Not that > > the space shouldn't work, but it might narrow down the problem (as might > > grepping the source for that error message). > > > > Also, I'd try without the trailing slash.
It doesn't matter if there is a trailing slash either. Daniel -- LIVAI Daniel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F

