Skip to content

fileparts

miscellaneous · scripts/miscellaneous/fileparts.m

: [filepath, name, ext] = fileparts (filename)

Split a file name into its folder, base name and extension.

The extension starts at the last dot of the part following the last path separator and includes that dot.