Files Under Folders (fuf)
by Francesco di Pierro
22 Feb 2002
(Updated 17 Jun 2003)
Recursively search for files through directory trees under given folders.
|
Watch this File
|
| File Information |
| Description |
This function scan the folder(s) provided, and search for all files or only for those matching a wild card, specified through the * syntax.
The search can be don recursively or not and a different recursion rule can be set for each folder provided.
Depending upon an optional input argument, the function can simply return the file names or their full path.
To get the full path of a given file, FUF doesn't use the "which" command, therefore it normally works also with java function that are not loaded.
After completion, the working directory is set to the current directory at the time of the function call. |
| Acknowledgements |
This submission has inspired the following:
Listfiles
|
| MATLAB release |
MATLAB 6.0 (R12)
|
| Other requirements |
Tested on 6.5 R(13) |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (20) |
| 02 Apr 2004 |
Fahad Al Mahmood
|
|
|
| 10 Mar 2005 |
Tomasz Kawka
|
|
|
| 30 Mar 2005 |
Yogesh Mehta
|
|
|
| 01 Aug 2005 |
Yangming Ou
|
|
|
| 30 Aug 2005 |
Ink-Eyes Servant of Oni
|
|
|
| 31 Aug 2005 |
g f
|
|
|
| 09 Sep 2005 |
Chad Webb
|
|
|
| 06 Jul 2006 |
sotirios chatzis
|
|
|
| 10 Sep 2006 |
chris gotschalk
|
|
|
| 03 Jan 2007 |
Giuseppe L Cascella
|
|
|
| 13 May 2008 |
Dimitri Shvorob
|
|
|
| 13 May 2008 |
Dimitri Shvorob
|
|
|
| 21 Aug 2009 |
Kenny Israni
|
|
|
| 27 Aug 2009 |
Aurelien Queffurust
|
|
|
| 22 Feb 2010 |
Seyed Iman
|
|
|
| 13 Sep 2010 |
Aurelien Queffurust
|
|
|
| 27 Oct 2010 |
mathworks2011
|
|
|
| 27 Feb 2011 |
T. R.
|
|
|
| 11 Jul 2011 |
Daniel Higginbottom
|
|
|
| 09 Nov 2011 |
Mahmoud hassan
|
|
|
| Updates |
| 19 Mar 2002 |
a)The fcn can now return the mere list of file names or their full paths;
b)After completion, the working directory is set to the current directory at the time of the fcn call;
c)The fcn also handles files that are java fcns not already loaded. |
| 23 Jul 2002 |
The function has been greatly enhanced. It accepts wildcards and can handle different recursion rules for each folder provided. |
| 24 Jul 2002 |
Bug fixing; now it works correctly also with directories not in the Matlab search path. |
| 17 Jun 2003 |
major bug fixed |
|
Contact us at files@mathworks.com