dirvalid(folder,varargin)
% 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 版本兼容性
平台兼容性
Windows macOS Linux类别
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |