decompose-pathname

[procedure] decompose-pathname pathname

Chicken: Returns three values: the directory, filename and extension of pathname. See also pathname-directory, pathname-file, pathname-extension, make-pathname, pathname-directory-separator, pathname-extension-separator

MzScheme has split-path that has similar function.