login about faq

When I do:

     countFiles = dirListing.NumFilesAndDirs;

I get 2 files, but there should be 3 files. Why do I not see all 3 files?

asked Oct 12 '12 at 09:58

chilkat's gravatar image

chilkat ♦♦

To understand the problem you need to get more information. There are two sources:

1) Examine the contents of the LastErrorText property after accessing the NumFilesAndDirs property. The LastErrorText always contains information about the last Chilkat method called or property accessed, even if it was successful. The reason is that it allows one to get more information for the cases where a Chilkat method behaves unexpectedly, yet still succeeds. In this case, you may also set the VerboseLogging property = true to get more verbose information in the LastErrorText.

2) Tell the FTP2 object to keep an in-memory session log by setting the ftp2.KeepSessionLog property = true. Then after accessing NumFilesAndDirs, examine the contents of the ftp2.SessionLog property. You can then see the raw directory listing retrieved from the FTP server and compare it with your results. The SessionLog combined with the LastErrorText should provide enough information to understand the problem. If you think it's a problem within the Chilkat FTP2 component, maybe somehow the directory listing was not parsed properly, then send the LastErrorText and SessionLog to support@chilkatsoft.com. However, be absolutely sure you are testing using the latest version of the component/lib because if not, then the 1st response will be to re-test using the latest version.


answered Oct 12 '12 at 10:03

chilkat's gravatar image

chilkat ♦♦

Could it be the listPattern is set causing the difference?



answered Oct 13 '12 at 04:33

Gert's gravatar image

Gert ♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Oct 12 '12 at 09:58

Seen: 1,382 times

Last updated: Oct 13 '12 at 04:33

powered by OSQA