FTP Function Reference

sFTPFindFirstFile

FTP Function Reference

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

<DllImport("SapphireFTP.dll")> _
Public Function sFTPFindFirstFile(ByVal sFileString As String, ByVal sFilter As String, ByVal lLicence As Integer) As Integer
End Function

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
    An integer 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.