Hello,
I am looking for specific files in my tree directory using ftw(3). How do I know how deep I am in the file structure.. in other words, say I am looking for config.txt files, and my structure looks like this..
/some/directory/user1/config.txt
/some/directory/user2/config.txt
....
/some/directory/user1/another/directory/config.txt
.....
How can I distinguish inside my callback function the depth in my structure, and handle the later example in a different way?
Thank you for your help..
-----
German Escallon
Software Developer
Adtec Digital Inc.