add_autofile is a generic version of [[plugins/autoindex]]'s code, so the latter should probably use the former. --[[smcv]]
add_autofile