Login  
Search All Forums
Dart Home | PowerTCP FTP for ActiveX | Custom Development Reply | PowerTCP FTP for ActiveX Topics | Forums   
AuthorForum: PowerTCP FTP for ActiveX
Topic: Multiple calls to .List return wrong count
N/A posted August 7, 2001 7:27 PM

Here's the deal. If I do the following:

Set FTP1 = CreateObject("Dart.FTP.1")
FTP1.Login "server","user","password"
FTP1.Directory = "DIR1"
FTP1.List "somefile.txt" ' this file exists
msgbox FTP1.Listing.Count ' returns 1
FTP1.Directory = "DIR2"
FTP1.List "soemfile.txt" ' this file doesn't exist
msgbox FTP1.Listing.Count ' still returns 1

What's up with that? If I look for the file that doesn't exist first, the counts return 0 then 1.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted August 7, 2001 7:47 PM


Check FTP1.Listing.Text to see what's in the Listing. There must be something there that you are not aware of.


Hope this helps!

Tony Priest
Dart Tech SUpport
N/A posted August 8, 2001 5:41 PM

Here's what I get:

(checking for existing file first)
/backdat02/logs/resolved/iweb1/https-1
Directory Count: 1
    resolved.access.200108081200.gz
---------- Text ----------
-rw-rw-r--  1 http   www    515281 Aug 8 16:10 resolved.access.200108081200.gz
--------------------------
/backdat02/logs/resolved/iweb2/https-1
Directory Count: 1
---------- Text ----------
resolved.access.2001080812*.gz: No such file or directory
--------------------------

(now checking for missing file first)
/backdat02/logs/resolved/iweb2/https-experian
Directory Count: 0
---------- Text ----------
resolved.access.2001080812*.gz: No such file or directory
--------------------------
/backdat02/logs/resolved/iweb1/https-experian
Directory Count: 1
    resolved.access.200108081200.gz
---------- Text ----------
-rw-rw-r--  1 http   www    515281 Aug 8 16:10 resolved.access.200108081200.gz
--------------------------

After .LIST successfully finds at a file, it returns a non-zero count for any .LIST afterward.

Matt.

Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted August 8, 2001 8:54 PM


What codes did you use to accomplish this? Please send a sample project to support@dart.com. If you have a support contract, someone can look into it ASAP.

Thanks,

Tony
Reply | PowerTCP FTP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX