+2003-02-08 Vince Darley <vincentdarley@sourceforge.net>
+
+ * library/*.tcl: made all 'matchindirectory' implementations
+ robust to whether they are passed a directory with a trailing
+ file-separator or not. (Tcl doesn't document whether there
+ will be one, and optimisations to Tcl's filesystem require
+ this flexibility. Also the use of 'file join' will actually
+ make the entire filesystem *more* efficient soon).
+
2003-02-06 Andreas Kupries <andreask@activestate.com>
* tclconfig/tcl.m4: Added SC_TCL_EARLY_FLAGS and
}
if {[::vfs::matchDirectories $type]} {
if {[string index $perms 0] == "d"} {
- lappend res "$actualpath$name"
+ lappend res [file join $actualpath $name]
}
}
if {[::vfs::matchFiles $type]} {
if {[string index $perms 0] != "d"} {
- lappend res "$actualpath$name"
+ lappend res [file join $actualpath $name]
}
}
set res [::mk4vfs::getdir $db $path $pattern]
}
foreach p [::vfs::matchCorrectTypes $type $res $actualpath] {
- lappend newres "$actualpath$p"
+ lappend newres [file join $actualpath $p]
}
return $newres
}
set newres [list]
foreach p [::vfs::matchCorrectTypes $type $res $actualpath] {
- lappend newres "$actualpath$p"
+ lappend newres [file join $actualpath $p]
}
return $newres
}
if {[string match $pattern $name]} {
puts "check: $name"
if {$type == 0} {
- lappend res $actualpath$name
+ lappend res [file join $actualpath $name]
} else {
- eval lappend res [_matchtypes $item $actualpath$name $type]
+ eval lappend res [_matchtypes $item \
+ [file join $actualpath $name] $type]
}
}
#puts "got: $res"
set newres [list]
foreach p [::vfs::matchCorrectTypes $type $res $actualpath] {
- lappend newres "$actualpath$p"
+ lappend newres [file join $actualpath $p]
}
#::vfs::log "got $newres"
return $newres