Safe Haskell | Safe-Infered |
---|
WASH.Utility.FileNames
Description
Collection of function for manipulating file names.
- longestSuffix :: (a -> Bool) -> [a] -> [a]
- filePart :: String -> String
- extName :: String -> String
- baseName :: String -> String
- fileToPath :: String -> [String]
- dropLastComponent :: String -> String
Documentation
longestSuffix :: (a -> Bool) -> [a] -> [a]Source
baseName :: String -> StringSource
longest prefix so that the rest contains .
; entire string if no .
present
fileToPath :: String -> [String]Source
splits input at each /
dropLastComponent :: String -> StringSource
drop the last component of a file path