CFLib.org – Common Function Library Project

ftpisConnected(ftpObject)

Last updated September 22, 2005

author

Willy Chang

Version: 1 | Requires: CF6 | Library: NetLib

Description:
Checks to see if a CF FTP connection is still connected.

Return Values:
Returns a boolean.

Example:

<cfftp connection = "ftpConn" 
   server=ftp.server.com 
       username="user"
       password="pass"
   action = "open" 
   stopOnError = "Yes" passive="Yes"> 
isConnected ? 
<cfoutput>#ftpisConnected(ftpConn)#</cfoutput>

Parameters:

Name Description Required
ftpObject Result of a previous CFFTP call. Yes

Full UDF Source:

<!---
 Checks to see if a CF FTP connection is still connected.
 
 @param ftpObject      Result of a previous CFFTP call. (Required)
 @return Returns a boolean. 
 @author Willy Chang (willy.mx@gmail.com) 
 @version 1, September 22, 2005 
--->
<cffunction name="ftpisConnected" output="false" returnType="boolean">
    <cfargument name="ftpObject" required="yes">
    <cfreturn ftpObject.isConnected()>
</cffunction>

Search CFLib.org


Latest Additions

Raymond Camden added
QueryDeleteRows
November 04, 2017

Leigh added
nullPad
May 11, 2016

Raymond Camden added
stripHTML
May 10, 2016

Kevin Cotton added
date2ExcelDate
May 05, 2016

Raymond Camden added
CapFirst
April 25, 2016

Created by Raymond Camden / Design by Justin Johnson