View Single Post
Old 10-03-2005, 11:01 AM  
Mouton
Posse Member
 
Join Date: Dec 2002
Posts: 1,956
Default

To fix latest that shows unwanted dirs:
open ioDUPE.itcl and add 3 lines in it:

Code:
proc sitenew {section number} {
global dupe ioB zs
if {[catch {set iolog [open $dupe(iolog) r]}]} {return 0}
set content [split [read $iolog] \r\n]; close $iolog
set newdirs [lsearch -all -inline -glob $content "* NEWDIR: *"]
set pos 0
foreach newdir $newdirs {
	foreach dir $zs(subdirs) {
		if {[string match -nocase "*/$dir" [lindex $newdir 5]]} {set newdirs [lreplace $newdirs $pos $pos]; incr pos -1}
	}
	foreach dir $zs(excluded,dupe) {
		if {[string match $dir [lindex $newdir 5]]} {set newdirs [lreplace $newdirs $pos $pos]; incr pos -1}
	}
	incr pos 1
}
Mouton is offline   Reply With Quote