diff --git a/download-latest-java-tomcat.cfm b/download-latest-java-tomcat.cfm index c9d12dd..4106007 100644 --- a/download-latest-java-tomcat.cfm +++ b/download-latest-java-tomcat.cfm @@ -72,8 +72,9 @@ dir = mid(files.directory, find( "!", files.directory) + 2 ); systemOutput( "#dir# #files.name# #files.size# #files.type# #files.mode#", true ); if ( files.type == "file" ){ - file = arguments.dest & dir & files.name; - systemOutput( file ); + file = arguments.dest & mid( dir, 2 ) & files.name; + systemOutput( file, true ); + systemOutput( fileExists( file ), true ); fileSetAccessMode(file , files.mode ); systemOutput( fileInfo( file ).mode, true ); }