Re: FTP syntax for upload?

2001-09-22 Thread Phil Davis


- Original Message -
From: "F. Ricardo, Ph.D." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 22, 2001 11:47 AM
Subject: FTP syntax for upload?


> Hi, gang,
>
> I'm trying to specify how to upload a file to a location
> via FTP. The "normal" methods don't seem appropriate.
>
> If I say
>   put url "file:c:/foo.txt" into url "ftp://usr:[EMAIL PROTECTED]/in/";
>
> I don't see the file up there, even though libURL replies
> "upload complete"
>
> I also have no way to specify the name of the uploaded
> file; I assume it'd have always to be the same name.


Since your "/in/" directory is not a container in the MC sense, maybe
that's why it's not working. Have you tried doing it with the filename
included, like "/in/foo.txt"? MC knows how to treat files as
containers, so maybe this would work.

If it works this way, it also solves your renaming problem - just
upload it under the new name. Otherwise, it seems your stack would
have to open a regular FTP session and tell the FTP server to rename
the files. (I suppose.)

Regards,
Phil

>
> This leads to the second point about FTP: how do I rename
> the file remotely, delete it, or invoke other FTP commands?
>
>
> Thanks!
> FJR
>
> __
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo!
Messenger. http://im.yahoo.com
>
> Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
> Info: http://www.xworlds.com/metacard/mailinglist.htm
> Please send bug reports to <[EMAIL PROTECTED]>, not this list.
>



Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.




Re: FTP syntax for upload?

2001-09-22 Thread andu

"F. Ricardo, Ph.D." wrote:
> 
> Hi, gang,
> 
> I'm trying to specify how to upload a file to a location
> via FTP. The "normal" methods don't seem appropriate.
> 
> If I say
>   put url "file:c:/foo.txt" into url "ftp://usr:[EMAIL PROTECTED]/in/";

The correct syntax is:
put url "file:c:/foo.txt" into url "ftp://usr:[EMAIL PROTECTED]/in/foo.txt";

> 
> I don't see the file up there, even though libURL replies
> "upload complete"

That is a mistake, I'll fix it.

> 
> I also have no way to specify the name of the uploaded
> file; I assume it'd have always to be the same name.

Correct. 

> 
> This leads to the second point about FTP: how do I rename
> the file remotely, delete it, or invoke other FTP commands?

Use delete url "ftp://usr:[EMAIL PROTECTED]/in/foo.txt";

I just tested both commands and they work, the user feedback obviously
needs some work.
Make sure you have the right paths to files.

> 
> Thanks!
> FJR
> 
> __
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger. 
>http://im.yahoo.com
> 
> Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
> Info: http://www.xworlds.com/metacard/mailinglist.htm
> Please send bug reports to <[EMAIL PROTECTED]>, not this list.

-- 
Regards, Andu
___
[EMAIL PROTECTED]

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.