FileIsHidden(FIlename)
Last updated November 15, 2002
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();
}
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