been trying to google it for a while now but didnt help using the " "...
anyway i need to do a recursive search inside a sub tree of the file system.
given a folder A , I need to go through all of its sub folders.
so far the recursive part is working well but I need to skip the "." and ".." folders before it checks
the whole file system.
added a few SWITCH cases but was wondering if there's a nicer method.
(i'm using S_ISDIR to check if an entry is a folder )