Login  
Search All Forums
Dart Home | PowerTCP FTP for .NET | Custom Development Reply | PowerTCP FTP for .NET Topics | Forums   
AuthorForum: PowerTCP FTP for .NET
Topic: Get/Put ignores storetype?
anax

From: filothei, USA
Posts: 1
Member Since: 12/19/03
posted December 19, 2003 10:32 AM

I tried to send/receive files synchronously with .get/.put commands, using the first syntax (string, string). The file already existed on server, but I wanted to overwrite it anyway. my snippet is:

ftp.StoreType = Dart.PowerTCP.Ftp.StoreType.Replace
ftp.Put(LocalName, RemoteName)

and the trace window shows:

SIZE myfile.avi
213 14636910

Since I'm using append storetype.replace, shouldn't the file be replaced?
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted December 19, 2003 5:44 PM

Hi,
Yes, it will be replaced.
The control sends a SIZE before all Puts and Gets for Progress purposes.
-ken
Reply | PowerTCP FTP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX