file.split — Return a list of a path's components.
file.split filename
file.split
filename
Takes a filename and returns a list of all the file's components.