dirvalid(folder,var​argin)

版本 1.0.0.0 (2.0 KB) 作者: Ben Oeveren
Validates the output of dir, ignores hidden files and provides wished output.
20.0 次下载
更新时间 2016/4/15

查看许可证

% p = dirvalid([],varargin) or p=dirvalid: without specified folder dirvalid will return cd
% p = dirvalid(folder) returns only valid folders and files and ignores
% hidden files within folder.
% p = dirvalid('',varargin), varargin is optional. See varargin options for specific outputs.
% [p,f] = dirvalid() seperates folders (p) from files (f).
%
% Ben van Oeveren, VU-Amsterdam, 15-Apr-2016
%
%% varargin (output) options:
% 'struct': default, will give the same output as dir
% 'name': 'example'
% 'path': 'example.ext'
% 'fullpath': 'anotherfolder/myfolder/example.ext'
% 'f': only files
% 'p': only folders

引用格式

Ben Oeveren (2024). dirvalid(folder,varargin) (https://www.mathworks.com/matlabcentral/fileexchange/56578-dirvalid-folder-varargin), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2016a
兼容任何版本
平台兼容性
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.0.0.0