Index: openacs-4/packages/acs-tcl/tcl/apm-file-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/apm-file-procs.tcl,v diff -u -r1.45.2.2 -r1.45.2.3 --- openacs-4/packages/acs-tcl/tcl/apm-file-procs.tcl 3 Jul 2020 07:27:28 -0000 1.45.2.2 +++ openacs-4/packages/acs-tcl/tcl/apm-file-procs.tcl 13 Jul 2020 12:02:33 -0000 1.45.2.3 @@ -32,8 +32,8 @@ Return the path to the apm-workspace, creating the directory if necessary. } { - set path [file join $::acs::rootdir apm-workspace] - if { [file isdirectory $path] } { + set path [ad_file join $::acs::rootdir apm-workspace] + if { [ad_file isdirectory $path] } { return $path } else { return [apm_mkdir $path] @@ -47,7 +47,7 @@ } { set base_path [apm_workspace_dir] set install_path "$base_path/install" - if { [file isdirectory $install_path] } { + if { [ad_file isdirectory $install_path] } { return $install_path } else { return [apm_mkdir $install_path] @@ -111,7 +111,7 @@ } else { set path $path/$package_key } - if { [file exists $path/$package_key.info] } { + if { [ad_file exists $path/$package_key.info] } { return $path/$package_key.info } error "The directory $path does not contain a package specification file ($package_key.info)." @@ -467,7 +467,7 @@ set h [ns_http queue -timeout $timeout:0 $url] set replyHeaders [ns_set create] ns_http wait -file F -headers $replyHeaders -spoolsize 1 $h - if {[file exists $output_file_name]} {file delete -- $output_file_name} + if {[ad_file exists $output_file_name]} {file delete -- $output_file_name} file rename -- $F $output_file_name set location [ns_set iget $replyHeaders location] if {$location eq ""} break @@ -540,7 +540,7 @@ return } - if {![file exists $file_path]} { + if {![ad_file exists $file_path]} { apm_callback_and_log $callback " The file cannot be found. Your URL or your filename is incorrect. Please verify that the filename is correct and try again." @@ -553,7 +553,7 @@ if { [catch { set files [split [string trim \ [exec [apm_gzip_cmd] -d -q -c -S .apm $file_path | [apm_tar_cmd] tf - 2> [apm_dev_null]]] "\n"] - apm_callback_and_log $callback "
[ns_quotehtml $errmsg]