The question is as simple as the logic I have here.
Logic:
Assuming that files should always contain your .png .txt suffix etc ...
While folders / directories take nothing but their plain name
The idea is to get these referenced names and set a type icon: if it is a directory, set a folder icon . Now, if it's a file with an extension, set a file icon .
Could someone please kindly show me how I can write a bash shell script in order to detect what's inside a directory: file and folder