FTP Function Reference

sFTPCurrentDirectory

FTP Function Reference

This function retrieves the path of the current remote FTP directory.

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

Parameters

  sCurrentDirectory
    A string variable that is used to store the name of the current remote FTP directory.
  lLicence
    An integer specifying the licence number of the registered utility. If using in demo mode, enter 1234567890.

Return Values

  Returns a number indicating success or failure. If the operation was successful then the return value will be FTP_NO_ERROR. Use sFTPErrorText to get a string version of the error message.