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.

Reply via email to