FTP Function Reference

sFTPFileExists

FTP Function Reference

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

Declare Function sFTPFileExists Lib "SapphireFTP.dll" (ByVal sFile As String, ByVal lLicence As Long) As Long

Parameters

  sFile
    A string specifying the name of the file or directory to see if it exists.
  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 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.