Since you seem to think that the
dirtree solutions won't work, here's an example which I think will show you that they can.
You simply need to create a macro to generate the icon/name pair. Since I don't know how you are implementing your icons, I've made a mock-up here. You'd need to modify it to match the way your icons are actually generated.
% The following is a dummy icon command
% If you have actual icon images, use \includegraphics to include them
% If you are generating them, put in the appropriate code for them here
% now we make a command for a folder/file which inserts the icon and its label
% adjust this as needed. If you only have 2 icons, then you could create
% a \myfile and \myfolder command with the icon fixed.