ll - long format file listing

Version 1.0.0.0 (1.45 KB) by Justin
File mimics output of the Linux 'ls -l' command.
301 Downloads
Updated 29 Jan 2010

View License

File mimics output of the Linux 'ls -l' command. File are listed one per line, with directory flag, file size, modification date and file name.
Input parameter is directory name to be listed. Wild characters are permitted (as in Matlab dir command).
Output is cell array of file names (e.g. without trailing spaces, as in 'names=dir(path);')

Examples:
>> ll test-dir
d 0 29-Jan-2010 14:24:36 New Folder
d 0 29-Jan-2010 14:24:42 New Folder (2)
307 15-Dec-2008 14:18:10 get_varargin.m
77 19-May-2009 09:39:26 my_deg2rad.m
88 13-Nov-2008 10:20:44 my_lmin2m3s.asv
104 13-Nov-2008 10:21:22 my_lmin2m3s.m
>> ll test-dir/my_*.m
77 19-May-2009 09:39:26 my_deg2rad.m
104 13-Nov-2008 10:21:22 my_lmin2m3s.m
>> files = ll( 'test-dir/my_*.m' )
77 19-May-2009 09:39:26 my_deg2rad.m
104 13-Nov-2008 10:21:22 my_lmin2m3s.m
files =
'my_deg2rad.m' 'my_lmin2m3s.m'

Cite As

Justin (2024). ll - long format file listing (https://www.mathworks.com/matlabcentral/fileexchange/26526-ll-long-format-file-listing), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on File Operations in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0