Jump to content


Photo

Missing files with: objDirectory = objFTPConnectionMTA.ReadDirectory()


  • Please log in to reply
4 replies to this topic

#1 avliet

avliet
  • Members
  • 5 posts

Posted 17 January 2014 - 05:04 PM

Hi, maybe someone can help me.

 

I use SmartFTP within VB 2010 Express to access an internal FTP Server on the other site of a internal firewall. This server is FileZilla FTP Server.

 

I have the following simple lines of code:

 

objFTPConnectionMTA.ChangeDirectory(Directory_To_Check)

 

If objFTPConnectionMTA.LastError = 0 then

 

 objDirectory = objFTPConnectionMTA.ReadDirectory()

 

 <<code>>

 

Endif

 

The problem is that I use this in a loop to check if there are new files on the FTP Server (every 10 seconds). One file is always there, so this loop should always give at least one file back. But during the day, approximately 3 to 5 times per hour I get the information that there are 0 (zero) files on the FTP Server. But I never delete the file on the FTP Server. When I do an instant retry, I get the right information. So there is no big problem, but it is very weird.

 

Does anyone has this problem? Is there a problem with reading directory information on a FileZilla FTP Server?

 

Regards,

Arjan

 

 

 

 

 

 

  

 

 

 



#2 mb

mb

    Developer

  • Administrators
  • 11527 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 17 January 2014 - 05:34 PM

Set the Log property of the connection object:
objFTPConnectionMTA.LogFile.File = "c:\temp\bla.log"
Reference:
https://www.smartftp...ILogFile__.html
https://www.smartftp...l/ILogFile.html

and then inspect the log file for data transfer errors.

#3 avliet

avliet
  • Members
  • 5 posts

Posted 18 January 2014 - 02:43 PM

Hi mb,

 

I did this, but there are no errors in the logifle

 

Arjan



#4 mb

mb

    Developer

  • Administrators
  • 11527 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 18 January 2014 - 03:12 PM

The log also shows the number of bytes transferred for each data transfer. Do you see any discrepancies there?

#5 avliet

avliet
  • Members
  • 5 posts

Posted 04 February 2014 - 10:06 AM

Solved






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users