| Description: |
I am using ActiveTcl 8.5.9.1 on Windows XP SP3.
fileutil::find $env(SYSTEMDRIVE)/ {string match *.pdf}
couldn't read directory "C:/System Volume Information/*": permission denied
while executing
"glob -nocomplain -directory $current -types f -- *"
(procedure "GLOBF" line 8)
invoked from within
"GLOBF $current"
(procedure "find" line 48)
invoked from within
"find $env(SYSTEMDRIVE)/ {string match *.pdf}"
(file "./error.tcl" line 6)
Maybe "glob -nocomplain" should not error out, but for now I added a check to
make sure the directory is readable in GLOBF and GLOBD as a workaround.
My workaround, along with my workaround for bug 3141568, looks like this:
proc ::fileutil::GLOBF {current} {
if {![file readable $current]} {
return {}
}
if {([file type $current] eq {link}) && !([file exists [file readlink $current]] && [file readable [file readlink $current]])} {
return {}
}
|