Development.Shake.FilePath
Description
Module for FilePath operations, to be used in place of
System.FilePath. It uses / as the directory separator to ensure
uniqueness, and squashes any /./ components.
Documentation
module System.FilePath.Posix
dropDirectory1 :: FilePath -> FilePathSource
Drop the first directory from a FilePath. Should only be used on
relative paths.
dropDirectory1 "aaa/bbb" == "bbb" dropDirectory1 "aaa/" == "" dropDirectory1 "aaa" == "" dropDirectory1 "" == ""
takeDirectory1 :: FilePath -> FilePathSource
Take the first component of a FilePath. Should only be used on
relative paths.
takeDirectory1 "aaa/bbb" == "aaa" takeDirectory1 "aaa/" == "aaa" takeDirectory1 "aaa" == "aaa"