diff --git a/download-latest-java-tomcat.cfm b/download-latest-java-tomcat.cfm index 96a1ab0..c9d12dd 100644 --- a/download-latest-java-tomcat.cfm +++ b/download-latest-java-tomcat.cfm @@ -71,10 +71,12 @@ loop query="files"{ dir = mid(files.directory, find( "!", files.directory) + 2 ); systemOutput( "#dir# #files.name# #files.size# #files.type# #files.mode#", true ); - file = arguments.dest & dir & files.name; - systemOutput( file ); - fileSetAccessMode(file , files.mode ); - systemOutput( fileInfo( file ).mode, true ); + if ( files.type == "file" ){ + file = arguments.dest & dir & files.name; + systemOutput( file ); + fileSetAccessMode(file , files.mode ); + systemOutput( fileInfo( file ).mode, true ); + } } throw "stop!";