FileNameSplit

WMA link


FileNameSplit["filenames"]

splits a filename into a list of parts.

FileNameJoin
ParentDirectory