>>
>>
>> ftp.storbinary(stor file_to_transfer, open(file_to_transfer,"r"))
>>
>
>You need to create the command as a string:
>ftp.storbinary("stor " + file_to_transfer,
>open(file_to_transfer,"r"))
>
>Kent
That worked perfectly, I was way off.
Thank-you!
Gary
p.s. sorry for the out of thread
Gary Taylor wrote:
> I'm trying to pass the name of a file as the first argument
> to the ftp.storbinary function(?) below. The only thing I
> can get to work is the real file name hard coded as the
> argument. I've tried parenthesis, single quotes, double
> quotes, and many combinations of the p
What path is the file? On 6/14/05, Gary Taylor <[EMAIL PROTECTED]> wrote:
I'm trying to pass the name of a file as the first argumentto the ftp.storbinary function(?) below. The only thing Ican get to work is the real file name hard coded as theargument. I've tried parenthesis, single quotes, dou
I'm trying to pass the name of a file as the first argument
to the ftp.storbinary function(?) below. The only thing I
can get to work is the real file name hard coded as the
argument. I've tried parenthesis, single quotes, double
quotes, and many combinations of the previous. I've tried
passing s