sorry, but this line has to be corrected:
foreach i [glob /* [exec ls -a $dir]] {
#...
}
TO
foreach i [exec ls -a $dir] {
if {[file exists "$dir/$i"]} {
eval [$box insert end $i]
}
#...
}
i've just learned you can't assign a local variable to a listbox which is global available
you have 3 options:
1. use a global variable and unset it after use
2. use a namespace
3. fill up the listbox with insert
*****************************************************
1.
proc get_dirs {dir} {...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.