XPInstall API Reference:File Object:Methods:isFile
From MDC
Contents |
[edit] isFile
Returns a boolean value indicating whether the given FileSpecObject is a file.
[edit] Method of
File object
[edit] Syntax
boolean isFile (FileSpecObject NativeFolderPath);
[edit] Parameters
The isFile method has the following parameter:
NativeFolderPath- A FileSpecObject representing the queried file object.
[edit] Returns
A boolean value indicating whether the FileSpecObject is a file or not.
[edit] Example
f = getFolder( "Program", "sample.txt" ); if ( File.isFile(f) ) // the object represents a file