| | @@ -98,45 +98,45 @@ |
| 98 | 98 | # We use glob to get the list of files (with proper case in |
| 99 | 99 | # the names) to perform our own, case-sensitive matching. WE |
| 100 | 100 | # use 8.5 features where possible, for clarity. |
| 101 | 101 | |
| 102 | 102 | if {[package vsatisfies [package present Tcl] 8.5]} { |
| 103 | | - proc fileexists_ci {path} { |
| 103 | + proc fileexists_cs {path} { |
| 104 | 104 | set dir [::file dirname $path] |
| 105 | 105 | set file [::file tail $path] |
| 106 | 106 | return [expr {$file in [glob -nocomplain -tail -directory $dir *]}] |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | | - proc fileisdir_ci {path} { |
| 109 | + proc fileisdir_cs {path} { |
| 110 | 110 | set dir [::file dirname $path] |
| 111 | 111 | set file [::file tail $path] |
| 112 | 112 | return [expr {$file in [glob -nocomplain -types d -tail -directory $dir *]}] |
| 113 | 113 | } |
| 114 | 114 | } else { |
| 115 | | - proc fileexists_ci {path} { |
| 115 | + proc fileexists_cs {path} { |
| 116 | 116 | set dir [::file dirname $path] |
| 117 | 117 | set file [::file tail $path] |
| 118 | 118 | return [expr {[lsearch [glob -nocomplain -tail -directory $dir *] $file] >= 0}] |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | | - proc fileisdir_ci {path} { |
| 121 | + proc fileisdir_cs {path} { |
| 122 | 122 | set dir [::file dirname $path] |
| 123 | 123 | set file [::file tail $path] |
| 124 | 124 | return [expr {[lsearch [glob -nocomplain -types d -tail -directory $dir *] $file] >= 0}] |
| 125 | 125 | } |
| 126 | 126 | } |
| 127 | 127 | } else { |
| 128 | | - proc fileexists_ci {path} { return [file exists $path] } |
| 129 | | - proc fileisdir_ci {path} { return [file isdirectory $path] } |
| 128 | + proc fileexists_cs {path} { return [file exists $path] } |
| 129 | + proc fileisdir_cs {path} { return [file isdirectory $path] } |
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | # # ## ### ##### ######## ############# |
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | namespace eval ::vc::tools::misc { |
| 136 | 136 | namespace export sp nsp max min max2 min2 ldelete |
| 137 | | - namespace export striptrailingslash fileexists_ci fileisdir_ci |
| 137 | + namespace export striptrailingslash fileexists_cs fileisdir_cs |
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | # ----------------------------------------------------------------------------- |
| 141 | 141 | # Ready |
| 142 | 142 | |
| 143 | 143 | |