| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Pantry.Internal
Documentation
normalizeParents :: FilePath -> Either String FilePath Source #
Like System.FilePath.normalise, however:
- Only works on relative paths, absolute paths fail
- Strips trailing slashes
- Only works on forward slashes, even on Windows
- Normalizes parent dirs
foo..get stripped - Cannot begin with a parent directory (
../) - Spelled like an American, sorry