subdir: a recursive file search

版本 1.1.0.0 (3.9 KB) 作者: Kelly Kearney
Performs a recursive file search using same input and output format as dir function
8.8K 次下载
更新时间 2016/8/16

This function performs a recursive file search. Its advantage over other FEX programs offering the same thing is that it uses the same input and output format as Matlab's dir function, and can therefore be used interchangeably.
Example:

>> a = subdir(fullfile(matlabroot, 'toolbox', 'matlab', '*.mat'))

a =

66x1 struct array with fields:
name
date
bytes
isdir
datenum

>> a(1)

ans =

name: '/Applications/MATLAB74/toolbox/matlab/audiovideo/chirp.mat'
date: '14-Mar-2004 10:31:48'
bytes: 25276
isdir: 0
datenum: 7.3202e+05

引用格式

Kelly Kearney (2024). subdir: a recursive file search (https://github.com/kakearney/subdir-pkg), GitHub. 检索来源 .

MATLAB 版本兼容性
创建方式 R14SP3
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 File Operations 的更多信息

Community Treasure Hunt

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

Start Hunting!

subdir

无法下载基于 GitHub 默认分支的版本

版本 已发布 发行说明
1.1.0.0

Linked to github repository

1.0.0.0

Fixed small typo in description

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库