I need to list files and directories, including subfolders, filtering output, all common functions regarding filesystem. For all this I've chosen the "stat" function and "scandir" function but I seem to lack of a way to know if a listed item of scandir is a directory or not. Of course, "not having extension" is not a good way to solve this, since files do not necessarily do...
Also it'd be great if someone would point me to a good specific source on this subject, with snippets covering most common functions. I'm not lazy to code it, but is highy improbable that I'll make a more efficient version than most out there...
Thanks in advance,
Mariano Lopez-Gappa (20) from Argentina