0

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!

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by Despairy
0

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 :)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.