dirvalid(folder,var​argin)

Validates the output of dir, ignores hidden files and provides wished output.
20 téléchargements
Mise à jour 15 avr. 2016

Afficher la licence

% 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

Citation pour cette source

Ben Oeveren (2024). dirvalid(folder,varargin) (https://www.mathworks.com/matlabcentral/fileexchange/56578-dirvalid-folder-varargin), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2016a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur File Operations dans Help Center et MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0.0.0