FileNameSplit

FileNameSplit["filenams"]
splits a filename into a list of parts.