FTP Function Reference

sFTPFileExists

FTP Function Reference

This function checks to see if a file or directory exists on the remote server.

<DllImport("SapphireFTP.dll")> _
Public Function sFTPFileExists(ByVal sFile As String, ByVal lLicence As Integer) As Integer
End Function

Parameters

  sFile
    A string specifying the name of the file or directory to see if it exists.
  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 the file exists or not where 1 means the file exists and 0 means it does not.

Remarks

  You cannot call sFTPFileExists between calls to sFTPFindFirstFile and sFTPFindNextFile. Calling sFTPFileExists close all previous file searches.