Synopsis
fileparse (fullname
[, suffixlist
])
Divides a file specification into its three parts, returning
them in this order: filename, path, suffix.
($name, $path, $suffix) = fileparse($fullname, @suffixlist)
The arguments are the same as for basename
.