dirvalid(folder,var​argin)

Validates the output of dir, ignores hidden files and provides wished output.
20 descargas
Actualizado 15 abr 2016

Ver licencia

% 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

Citar como

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

Compatibilidad con la versión de MATLAB
Se creó con R2016a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre File Operations en Help Center y MATLAB Answers.

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0