-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Hey, what do you think about adding a second output argument that returns the results in the form of a table array?
function [dirs, details] = stringdir( name )
A table is easier to work with; you wouldn't have to worry about catting stuff like names = [dirs.name];, just say names = details.name;. And then if you disp()ed details, you'd get a nice readable tabular format.
And how about adding time zone info to the date field?
And how about a path field that's just fullfile(d.folder, d.name), as a convenience to the caller so they don't have to do the catenation themselves?
And maybe rename date to mtime, and datenum to mdatenum? These are modification times of the file, but there's also atime (access time) and ctime (creation time) properties (at the OS level, even if Matlab doesn't expose them).