CFLib.org – Common Function Library Project

FileIsHidden(FIlename)

Last updated November 15, 2002

author

Jesse Houwing

Version: 1 | Requires: CF6 | Library: FileSysLib

Description:
Returns if a file is hidden or not. It uses the native java.io.File class and is therefore very fast in Coldfusion MX.

Return Values:
Returns a boolean..

Example:

<cfset filename="c:\autoexec.bat">
<cfoutput>
	IsHidden: #FileIsHidden(filename)#
</cfoutput>

Parameters:

Name Description Required
FIlename Filename to use. Yes

Full UDF Source:

/**
 * Returns if a file is hidden or not.
 * 
 * @param FIlename 	 Filename to use. (Required)
 * @return Returns a boolean.. 
 * @author Jesse Houwing (j.houwing@student.utwente.nl) 
 * @version 1, November 15, 2002 
 */
function FileIsHidden(filename){
	var _File =  createObject("java", "java.io.File");
	_File.init(JavaCast("string", filename));
	return _File.isHidden();
}
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