From: Pat Thoyts Date: Thu, 22 Jan 2009 15:24:33 +0000 (+0000) Subject: [Bug 2482573] improve handling of glob for tclprocvfs X-Git-Url: https://privyetmir.co.uk/gitweb.cgi?a=commitdiff_plain;h=ac8d65b4429512d6ba365b6d251f754776ec2fb2;p=tclvfs [Bug 2482573] improve handling of glob for tclprocvfs --- diff --git a/library/tclprocvfs.tcl b/library/tclprocvfs.tcl index 4287eeb..99845fa 100644 --- a/library/tclprocvfs.tcl +++ b/library/tclprocvfs.tcl @@ -115,7 +115,8 @@ proc vfs::ns::matchindirectory {ns path actualpath pattern type} { set ns ::[string trim $ns :] set nspath ${ns}::${path} - set slash 1 + if {![namespace exists $nspath]} {return {}} + set slash 1 if {[::vfs::matchDirectories $type]} { # add matching directories to $res if {[string length $pattern]} {