FTP Function Reference

sFTPFindFirstFile

FTP Function Reference

This function searches for the first file or directory in the current remote directory.

Declare Function sFTPFindFirstFile Lib "SapphireFTP.dll" (ByVal sFileString As String, ByVal sFilter As String, ByVal lLicence As Long) As Long

Parameters

  sFileString
    A string variable that is used to return the details of the first found item.
  sFilter
    A string specifying a filter to perform a more specific search.
  lLicence
    A long specifying the licence number of the registered utility. If using in demo mode, enter 1234567890.

Return Values

 

Returns a number indicating whether a file was found. If there were no files found the value will be 0.