folders sub-folders

版本 1.2.0.0 (4.3 KB) 作者: Nikolay S.
Returns cell array of folder names located under input list (cell array) of folders. Non recursive!
957.0 次下载
更新时间 2014/10/26

查看许可证

This functions goal is to return a list (cell array) of names of sub-folders located under user defined folders list. The input should be a a cell array of parent directories names. The function also supports input of a single directory name string.
Alternatively, the user can choose the folders using the OS explorer- by enabling the 'flagGUI' input.
Function properties:
- It is not recursive but iterative.
- It does not change the current folder (not using "cd" command).
- It uses "ls" function, which is supposed to be faster than "dir" function.
- According to some measurements I've made it runs faster than the alternatives.
- I also believe it is clearly written and documented, so it should be easy to understand and maintain.

引用格式

Nikolay S. (2024). folders sub-folders (https://www.mathworks.com/matlabcentral/fileexchange/41135-folders-sub-folders), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2012b
兼容任何版本
平台兼容性
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!
版本 已发布 发行说明
1.2.0.0

Sub function was exported to a stand alone function for use in other scenarios.

1.1.0.0

Minor modifications

1.0.0.0