DBI supports only Directory listing in apache style. The same listing provides nginx and some other http servers. All of them are using relative hrefs.
Your script produces totally different output: list of files with absolute urls. If I understand correct they can be even from different folders. This type of listing is not supported.
Your script produces totally different output: list of files with absolute urls. If I understand correct they can be even from different folders. This type of listing is not supported.