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>
blog comments powered by Disqus

Search CFLib.org


Latest Additions

Kevin Cotton added
date2ExcelDate
May 5, 2016

Raymond Camden added
CapFirst
April 25, 2016

Chris Wigginton added
loremIpsum
January 18, 2016

Gary Stanton added
calculateArrival...
November 19, 2015

Sebastiaan Naafs - van Dijk added
getDaysInQuarter
November 13, 2015

Created by Raymond Camden / Design by Justin Johnson