in reply to Re^2: file search
in thread file search
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: file search
by wfsp (Abbot) on Mar 07, 2011 at 17:42 UTC | |
by anna_ajay (Initiate) on Mar 08, 2011 at 12:31 UTC | |
by Corion (Patriarch) on Mar 08, 2011 at 12:41 UTC | |
by anna_ajay (Initiate) on Mar 08, 2011 at 13:06 UTC |