CFLib.org – Common Function Library Project

ftpisConnected(ftpObject)

Last updated September 22, 2005
Download UDF

author

Willy Chang                                       Willy Chang

Version: 1 | Requires: ColdFusion MX | 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 Compton Raymond Compton added
structBlend
19 day(s) ago

Duncan Duncan added
IsZIPUK
19 day(s) ago

Todd Sharp Todd Sharp added
getTagContentAll
25 day(s) ago

Gerald Guido Gerald Guido added
ListReturnDuplicat...
1 month(s) ago

Gerald Guido Gerald Guido added
ListReturnDuplicat...
1 month(s) ago

Created by Raymond Camden / Design by Justin Johnson