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 174881b commit 785ebdb
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions download-latest-java-tomcat.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@
if ( directoryExists( tmpDest ) )
directoryDelete( tmpDest );
directoryCreate( tmpdest );
logger(" extracting [#arguments.src# ] into [#arguments.dest#]" );
logger(" extracting [#arguments.src# ] into [#tmpDest#]" );
extract( arguments.format, arguments.src, tmpDest );
if ( arguments.format != "zip" ){
applyPermissions(arguments.src, tmpDest);
applyPermissions( arguments.src, tmpDest );
}
var files = directoryList(tmpDest, true);
Expand All @@ -67,7 +67,13 @@
var files = directoryList( path="tgz://" & src, recurse=true, listinfo="query");
var dir ="";
var file = "";
systemOutput( files.columnlist, true );
systemOutput( dest, true );
var destFiles = directoryList( path=dest, recurse=false, listinfo="query");
for ( var d in destFiles ) {
systemOutput( d, true );
}
loop query="files"{
dir = mid(files.directory, find( "!", files.directory) + 2 );
systemOutput( "#dir# #files.name# #files.size# #files.type# #files.mode#", true );
Expand Down

0 comments on commit 785ebdb

Please sign in to comment.