it is not giving me the files in the sub directory. How do i do that?
As per toolic's reply, use opendir/readdir.
I need to avoid cyclic links, but didn't get the idea how to check the cyclic link?
Have a look at readlink.
Also i need to find a way without recursion?
Any other restrictions? Can we use computers? Recursion is the only by far the most sensible approach when dealing with an arbitrary depth of sub-directories.
Update: Slightly toned down the recursion encomium!
Cheers,
JohnGG
In reply to Re^3: file search
by johngg
in thread file search
by anna_ajay
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |