fileparts2(file)

Versión 1.0.0.0 (807 Bytes) por Erik Roberts
fileparts without missing trailing slash bug
28 descargas
Actualizado 20 mar 2017

Ver licencia

% Purpose: Fixes mixing trailing slash bug in fileparts. If path is a dir without
% a trailing slash, will add the slash so fileparts gives expected pathstr.
%
% Usage: [pathstr, name, ext] = fileparts2(file)
%
% Explanation:
% Given a directory structure: ./parent/child/
%
% Problem:
% fileparts(parent/child/) = parent/child % Expected
% fileparts(parent/child) = parent % Bug
%
% Solution:
% fileparts2(parent/child/) = parent/child % Expected
% fileparts2(parent/child) = parent/child % Fixed bug
%
% See also FILEPARTS

Citar como

Erik Roberts (2024). fileparts2(file) (https://www.mathworks.com/matlabcentral/fileexchange/62155-fileparts2-file), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2017a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Instrument Control Toolbox en Help Center y MATLAB Answers.
Etiquetas Añadir etiquetas

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