Can someone clue me in on the syntax to use with the isFileFormat method? I'm trying to construct an if...else that only looks at PDFs.
if the file is a PDF {
grab some information about that file
}
isFileFormat syntax
Re: isFileFormat syntax
This method belongs to the FileStatistics Class so you may need to operate like this :
Loic
Code: Select all
var fs = new FileStatistics( job.getPath() );
var isPDF = fs.isFileFormat("PDF");
if ( isPDF ){
//Cool it's PDF
}
else {
//Oh no a dummy format again !
}