proc rescan {path dots append} {
global output_directory input_directory icon genre_list title
- foreach name [glob -tails -nocomplain -directory "$input_directory/$path" "{.rules.md,*}"] {
+ foreach name [glob -tails -nocomplain -directory "$input_directory/$path" "{.rules.md,index.md,*}"] {
if { [file type "$input_directory/$path/$name"] == "directory" } {
file mkdir "$output_directory/$append/$path/$name"
rescan "$path/$name" "$dots../" "$append"