drop -package +filepath

dropDrive :: FilePath -> FilePath
filepath System.FilePath.Windows, filepath System.FilePath.Posix
Delete the drive, if it exists. > dropDrive x == snd (splitDrive x)
dropExtension :: FilePath -> FilePath
filepath System.FilePath.Windows, filepath System.FilePath.Posix
Remove last extension, and the "." preceding it. > dropExtension x == fst (splitExtension x)
dropExtensions :: FilePath -> FilePath
filepath System.FilePath.Windows, filepath System.FilePath.Posix
Drop all extensions > not $ hasExtension (dropExtensions x)
dropFileName :: FilePath -> FilePath
filepath System.FilePath.Windows, filepath System.FilePath.Posix
Drop the filename. > dropFileName x == fst (splitFileName x)
dropTrailingPathSeparator :: FilePath -> FilePath
filepath System.FilePath.Windows, filepath System.FilePath.Posix
Remove any trailing path separators > dropTrailingPathSeparator "file/test/" == "file/test" > Posix: not (hasTrailingPathSeparator (dropTrailingPathSeparator x)) || isDrive x > Posix: dropTrailingPathSeparator "/" == "/" > Windows: dropTrailingPathSeparator "\\" == "\\"