dropExtension module:System.FilePath

Remove last extension, and the "." preceding it.
dropExtension "/directory/path.ext" == "/directory/path"
dropExtension x == fst (splitExtension x)
Remove last extension, and the "." preceding it.
dropExtension "/directory/path.ext" == "/directory/path"
dropExtension x == fst (splitExtension x)
Drop all extensions.
dropExtensions "/directory/path.ext" == "/directory/path"
dropExtensions "file.tar.gz" == "file"
not $ hasExtension $ dropExtensions x
not $ any isExtSeparator $ takeFileName $ dropExtensions x
Drop all extensions.
dropExtensions "/directory/path.ext" == "/directory/path"
dropExtensions "file.tar.gz" == "file"
not $ hasExtension $ dropExtensions x
not $ any isExtSeparator $ takeFileName $ dropExtensions x