lavf/file: implement directory listing callbacks