Rank: 1348 based on 48 downloads (last 30 days) and 1 file submitted
photo

Thomas Vanaret

E-mail
Company/University
Safran Engineering Services - Safran Group
Lat/Long
48.60403442382812, 2.652200937271118

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Thomas
Updated   File Tags Downloads
(last 30 days)
Comments Rating
22 Jan 2012 Recursive directory listing - Enhanced RDIR Files and directories listing, including recursive and other special features Author: Thomas Vanaret dir, recursive, file, directory, listing, filter 48 5
  • 5.0
5.0 | 4 ratings
Comments and Ratings by Thomas View all
Updated File Comments Rating
23 Jan 2012 Recursive directory listing - Enhanced RDIR Files and directories listing, including recursive and other special features Author: Thomas Vanaret

Thank you Alan for your suggestion.
Problem has been fixed in new version available (2.2).

15 Jul 2011 Recursive directory listing Directory listing with a difference, supports directory wildcards. Author: Gus Brown

@ Pietro and other RDIR users :
I just submitted an enhanced version of RDIR function that fix bug on returned path an add some new features.

See "Recursive directory listing - Enhanced RDIR" below / File ID: #32226

14 Jun 2011 Recursive directory listing Directory listing with a difference, supports directory wildcards. Author: Gus Brown

@ pietro : there is indeed a bug in the way the displayed path is built in rdir function, in the "if isempty(wildpath)" statement.

Output name is built only from "prepath" and "D(ii).name" (on line 87). "postpath" is always omitted whereas it can be the parent directory name.

06 May 2011 exportToZip: Identifies the dependencies of an M-file and creates a ZIP file Files inside $matlabroot/toolbox are omitted, providing a useful way to package your work Author: Malcolm Wood

In function "mydepfun", subfunction "i_function_name" may be corrected as following to treat correctly "private" directories :

function func = i_function_name(f)
% Identifies the function name for the specified file,
% including the class name where appropriate. Does not
% work for UDD classes, e.g. @rtw/@rtw

[dirname,funcname] = fileparts(f);
[ignore,dirname] = fileparts(dirname);

% [TV] patch for 'private' functions
if strcmp(dirname, 'private')
  [ignore, private_parent] = fileparts(ignore);
  dirname = private_parent;
  funcname = [ 'private' filesep funcname ];
end
% /[TV] patch for 'private' functions

if ~isempty(dirname) && dirname(1)=='@'
    func = [ dirname filesep funcname ];
else
    func = funcname;
end

06 May 2011 Recursively get file-dependencies of a given function This function searches recursively for all files dependent to a given function (excluding matlabroo Author: Torsten Hopp
Comments and Ratings on Thomas' Files View all
Updated File Comment by Comments Rating
23 Jan 2012 Recursive directory listing - Enhanced RDIR Files and directories listing, including recursive and other special features Author: Thomas Vanaret Vanaret, Thomas

Thank you Alan for your suggestion.
Problem has been fixed in new version available (2.2).

27 Dec 2011 Recursive directory listing - Enhanced RDIR Files and directories listing, including recursive and other special features Author: Thomas Vanaret Andrea

Sorry... manage to have it working!

27 Dec 2011 Recursive directory listing - Enhanced RDIR Files and directories listing, including recursive and other special features Author: Thomas Vanaret Andrea

Very useful indeed!
I am not sure if I am missing something, but unfortunately I am not able to make it finding multiple files with same name (even if in different folders). This would be a great improvement!

19 Dec 2011 Recursive directory listing - Enhanced RDIR Files and directories listing, including recursive and other special features Author: Thomas Vanaret Jennings, Alan

Works great and saved me a lot of time.
A suggested improvement, instead of looking at the file size to identify directories, use the isdir flag.
Line 286: if D(ii).isdir %sz<0,
Change display to allow for 0b files
Line 291-293:
ss = max(0,min(4,floor(log2(sz)/10)));
disp(sprintf('%4.0f %1sb %20s %-64s ',...
sz/1024^(ss+eps),pp{ss+1}, datestr(D(ii).datenum, 0), D(ii).name));

19 Dec 2011 Recursive directory listing - Enhanced RDIR Files and directories listing, including recursive and other special features Author: Thomas Vanaret Jennings, Alan
Top Tags Applied by Thomas
dir, directories, directory, file, files
Files Tagged by Thomas
Updated   File Tags Downloads
(last 30 days)
Comments Rating
22 Jan 2012 Recursive directory listing - Enhanced RDIR Files and directories listing, including recursive and other special features Author: Thomas Vanaret dir, recursive, file, directory, listing, filter 48 5
  • 5.0
5.0 | 4 ratings

Contact us at files@mathworks.com