I added this at line 125 in tDAV.tcl:
set server_name [ns_info server]
if {[file isdirectory $fname]} {
# we want to return the index page
# which may have any number of allowed extensions
# split the directoryfile parameter into list
# return match in list that exists as a file
set index_patterns [split [ns_config ns/server/$server_name
directoryfi\le] ","]
foreach index_plus_extension $index_patterns {
set possible_index_path "$fname/$index_plus_extension"
if {[file exists $possible_index_path]} {
set fname $possible_index_path
break
}
}
}
Unfortunately, it only solves half my problem... and in the end, I
think the standard for webDAV would be to return a list of what is in
the directory (like ftp), not render the actual index page for a
directory. Drag!