Skip to content

Commit

Permalink
Update download-latest-java-tomcat.cfm
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Aug 14, 2024
1 parent 5342803 commit f0853f1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions download-latest-java-tomcat.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,18 @@
}
*/
loop query="files"{
loop query="files" {
dir = mid(files.directory, find( "!", files.directory) + 2 );
// systemOutput( "#dir# #files.name# #files.size# #files.type# #files.mode#", true );
if ( files.mode != "644" )
systemOutput( "#dir# #files.name# #files.size# #files.type# #files.mode#", true );
if ( files.type == "file" ){
file = arguments.dest & mid( dir, 2 ) & "/" & files.name;
systemOutput( file, true );
// ßsystemOutput( file, true );
//systemOutput( fileExists( file ), true );
fileSetAccessMode( file , files.mode );
systemOutput( fileInfo( file ).mode & " should be " & files.mode , true );
if ( fileInfo( file ).mode != files.mode) {
throw "#File# is #fileInfo( file ).mode# should be #files.mode#";
}
}
}
}
Expand Down

0 comments on commit f0853f1

Please sign in to comment.