Code covered by the BSD License
-
cdw(f)
CDW Change current working directory with wildcards
-
f=expandstr(str)
EXPANDSTR Expand indexed strings.
-
fo=rdir(name,opt)
RDIR Recursive list directory.
-
num=getfilenum(f,pat,opt)
GETFILENUM Get the index of a series of files.
-
rdelete(f,varargin)
RDELETE Delete a series of files.
-
renamefile(f,pat1,pat2,opt)
RENAMEFILE Rename a series of files.
-
renumberfile(f,pat,newnum,nz,...
RENUMBERFILE Re-number the indices of a series of files.
-
varargout=lsw(f)
LSW List directory with wildcards
-
varargout=rrmdir(varargin)
RRMDIR Delete a series of directories.
-
Contents.m
-
Contents
-
cdw
-
expandstr
-
getfilenum
-
lsw
-
rdelete
-
rdir
-
renamefile
-
renumberfile
-
rrmdir
-
View all files
from
FileSeries - Rename / renumber files, recursive directories
by Frederic Moisy
Renaming and renumbering for series of files ; generalize the use of wildcards (*) for CD, LS ...
|
| varargout=lsw(f)
|
function varargout=lsw(f)
%LSW List directory with wildcards
% LSW works as Matlab's built-in LS, but wildcards (*) are interpreted
% differently:
% LS mydir* lists the directory names matchning 'mydir*'
% LSW mydir* lists the content of the first directory matching
% 'mydir*'
% Chained wildcards are also allowed:
% LSW mydir*/exp*
%
% See also CDW, LS, RDIR.
% F. Moisy, moisy_at_fast.u-psud.fr
% Revision: 1.00, Date: 2008/09/05
% History:
% 2008/09/05: v1.00, first version.
error(nargchk(1,1,nargin));
f=rdir(f,'dironly');
if ~isempty(f)
if nargout
varargout{1}=ls(f{1});
else
ls(f{1})
end
end
|
|
Contact us at files@mathworks.com