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 )

thanks!

so it looks like he did the same thing using STRCMP
i just wondered if there is a macro same as S_ISDIR
that return false for "." and ".." but true to "real" folders

thanks anyway :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.