cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: sftp uploads and relative paths

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 2 Jan 2010 09:40:37 +0100 (CET)

On Fri, 1 Jan 2010, Nick Jensen wrote:

> sftp://myhost.com:22/~/my-file.txt (works as expected)
>
> So I guess the solution is to use a ~ prefix ... but will this work on a
> Windows based SFTP server? I was under the impression that the tilde was
> only a valid path on Unix/Mac systems. Or is there another way to create a
> cross-platform relative url?

SFTP URIs are defined to work like that and libcurl uses the specified way. It
has nothing to do with UNIX vs anything else.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-01-02