filename
= rfsearch (dname, fnpattern)
¶filename
= rfsearch (dname, fnpattern, maxdepth)
¶Recursive File Search - search for file or filename pattern FNPATTERN starting in directory DNAME and return the first match.
Output argument filename returns the relative file path of the first match, relative to DNAME, or an empty character string if no match was found.
Examples:
filename = rfsearch ("/home/guest/octave", "test.fil") Look for file test.fil and start the search in /home/guest/octave
filename = rfsearch ("/home", "test.fil", 2) Look for file test.fil, start the search in /home, and if needed search subdirs of subdirs of /home
See also: dir, glob.
Package: io