cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Re: --ftp-create-dirs fails on SFTP?

From: Trasca Virgil <virgil_trasca_at_yahoo.com>
Date: Sun, 26 Jun 2011 23:34:40 -0700 (PDT)

Hi,

1. Assuming there is a project myproject on sourceforge.net
2. Try to upload a file to /home/pfs/project/m/myproject/test1/test2

/test1/test2 are new folders which should be created by curl using
--ftp-create-dirs. The rest of the path already exists on sourceforge.net

 Thank you,
Doru

________________________________
From: "curl-users-request_at_cool.haxx.se" <curl-users-request_at_cool.haxx.se>
To: curl-users_at_cool.haxx.se
Sent: Sun, June 26, 2011 1:00:03 PM
Subject: curl-users Digest, Vol 70, Issue 17

Send curl-users mailing list submissions to
    curl-users_at_cool.haxx.se

To subscribe or unsubscribe via the World Wide Web, visit
    http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
or, via email, send a message with subject or body 'help' to
    curl-users-request_at_cool.haxx.se

You can reach the person managing the list at
    curl-users-owner_at_cool.haxx.se

When replying, please edit your Subject line so it is more specific
than "Re: Contents of curl-users digest..."

Today's Topics:

   1. Re: Re: --ftp-create-dirs fails on SFTP? (Doug McNutt)
      (Trasca Virgil)
   2. Re: Re: --ftp-create-dirs fails on SFTP? (Doug McNutt)
      (Daniel Stenberg)

----------------------------------------------------------------------

Message: 1
Date: Sat, 25 Jun 2011 06:08:28 -0700 (PDT)
From: Trasca Virgil <virgil_trasca_at_yahoo.com>
To: curl-users_at_cool.haxx.se
Subject: Re: Re: --ftp-create-dirs fails on SFTP? (Doug McNutt)
Message-ID: <1309007308.7775.YahooMailRC_at_web33801.mail.mud.yahoo.com>
Content-Type: text/plain; charset="us-ascii"

Doug, thanks for the answer.

It is not a permission issue. With the same credentials I am able to create
directories in the same path using FileZilla FTP client.

The issue is easy to replicate if you will try to use --ftp-create-dirs when
uploading a file to a SFTP sourceforge.net account.

________________________________
From: "curl-users-request_at_cool.haxx.se" <curl-users-request_at_cool.haxx.se>
To: curl-users_at_cool.haxx.se
Sent: Sat, June 25, 2011 1:00:04 PM
Subject: curl-users Digest, Vol 70, Issue 16

Send curl-users mailing list submissions to
    curl-users_at_cool.haxx.se

To subscribe or unsubscribe via the World Wide Web, visit
    http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
or, via email, send a message with subject or body 'help' to
    curl-users-request_at_cool.haxx.se

You can reach the person managing the list at
    curl-users-owner_at_cool.haxx.se

When replying, please edit your Subject line so it is more specific
than "Re: Contents of curl-users digest..."

Today's Topics:

   1. Re: --ftp-create-dirs fails on SFTP? (Doug McNutt)
   2. Re: Problem with Windows environment variables in config file
      ! (Martin Maurer)

----------------------------------------------------------------------

Message: 1
Date: Fri, 24 Jun 2011 10:20:02 -0600
From: Doug McNutt <douglist_at_macnauchtan.com>
To: curl-users_at_cool.haxx.se
Subject: Re: --ftp-create-dirs fails on SFTP?
Message-ID: <p05100301ca2a693410c1@[192.168.1.14]>
Content-Type: text/plain; charset="us-ascii"

At 01:16 -0700 6/24/11, Trasca Virgil wrote:
>If I upload to SFTP to an existing folder it is working, if it is requiring to
>create new folders it is failing(in most of the cases, with an exception
>described below).

That could be a permissions problem on the host. I donno about Windows but in
UNIX you would need write access to the directory in which you are creating a
subdirectory.

-- 
-->A fine is a tax for doing wrong. A tax is a fine for doing well.<--
------------------------------
Message: 2
Date: Fri, 24 Jun 2011 18:46:05 +0200
From: "Martin Maurer" <meinemailingliste_at_online.de>
To: "the curl tool" <curl-users_at_cool.haxx.se>,    "Troll Rmdn"
    <troll.rmdn_at_yahoo.fr>
Subject: Re: Problem with Windows environment variables in config file
    !
Message-ID: <F3BF4D16C2894E67A8E5946EABCE0F31_at_quad>
Content-Type: text/plain; charset="iso-8859-1"
Hello Troll,
a late answer, but perhaps still helpful:
How about creating the config file by a shell script / batch file on the fly 
(example not tried, just as idea) ?
echo -u username:password > configfile.txt
echo -T "%APPDATA%\\file.rar" >> configfile.txt
echo --url ftp://myhost.com/directory/ >> configfile.txt
curl -K configfile.txt
Then you can write into configfile.txt everything the shell / DOS offers, not 
depending on build in functionality of curl...
Best regards,
Martin
  ----- Original Message ----- 
  From: Troll Rmdn 
  To: the curl tool 
  Sent: Monday, June 20, 2011 1:31 AM
  Subject: Re : Problem with Windows environment variables in config file !
  > You up to working on this for Windows?
  I would like to do it but I'm not a programmer, I'm an end-user who searches 
for a tiny command-line ftp tool that accepts file_to_upload parameter from a 
config file and recognizes win envir vars in it !!
------------------------------------------------------------------------------
  De : Daniel Stenberg <daniel_at_haxx.se>
  ? : the curl tool <curl-users_at_cool.haxx.se>
  Envoy? le : Dim 19 juin 2011, 21h 45min 24s
  Objet : Re: Problem with Windows environment variables in config file !
  On Sun, 19 Jun 2011, Troll Rmdn wrote:
  > curl seems not to be able to recognize Windows environment variables in 
config file.
  Oh right, that's correct. curl makes not attempts of converting such a thing.
  > How to use Windows environment variables in config file ?
  There's currently no way to make it do so. It also doesn't recognize other 
system's environment variables...
  I guess we should consider adding this. You up to working on this for Windows?
  -- 
  / daniel.haxx.se
  -------------------------------------------------------------------
  List admin: http://cool.haxx.se/list/listinfo/curl-users
  FAQ:        http://curl.haxx.se/docs/faq.html
  Etiquette:  http://curl.haxx.se/mail/etiquette.html
------------------------------------------------------------------------------
  -------------------------------------------------------------------
  List admin: http://cool.haxx.se/list/listinfo/curl-users
  FAQ:        http://curl.haxx.se/docs/faq.html
  Etiquette:  http://curl.haxx.se/mail/etiquette.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://cool.haxx.se/pipermail/curl-users/attachments/20110624/be08642e/attachment-0001.html>
------------------------------
_______________________________________________
curl-users mailing list
curl-users_at_cool.haxx.se
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
End of curl-users Digest, Vol 70, Issue 16
******************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://cool.haxx.se/pipermail/curl-users/attachments/20110625/d8ab70de/attachment-0001.html>
------------------------------
Message: 2
Date: Sat, 25 Jun 2011 22:06:52 +0200 (CEST)
From: Daniel Stenberg <daniel_at_haxx.se>
To: the curl tool <curl-users_at_cool.haxx.se>
Subject: Re: Re: --ftp-create-dirs fails on SFTP? (Doug McNutt)
Message-ID: <alpine.DEB.2.00.1106252205120.29661_at_tvnag.unkk.fr>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
On Sat, 25 Jun 2011, Trasca Virgil wrote:
> It is not a permission issue. With the same credentials I am able to create 
> directories in the same path using FileZilla FTP client.
>
> The issue is easy to replicate if you will try to use --ftp-create-dirs when 
> uploading a file to a SFTP sourceforge.net account.
And assuming we have such an account, what exactly do we need to run to repeat 
this problem?
-- 
  / daniel.haxx.se
------------------------------
_______________________________________________
curl-users mailing list
curl-users_at_cool.haxx.se
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
End of curl-users Digest, Vol 70, Issue 17
******************************************

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-06-27