File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ -- |
2+ -- Module : Streamly.Coreutils.RealPath
3+ -- Copyright : (c) 2022 Composewell Technologies
4+ -- License : BSD-3-Clause
5+ -- Maintainer : streamly@composewell.com
6+ -- Stability : experimental
7+ -- Portability : GHC
8+ --
9+ -- Returns resolved symbolic link target.
10+
11+ module Streamly.Coreutils.RealPath
12+ (realPath )
13+ where
14+
15+ import System.Directory (canonicalizePath )
16+
17+ -- | Make a path absolute, normalize the path,
18+ -- and remove as many indirections from it as possible.
19+
20+ realPath :: FilePath -> IO FilePath
21+ realPath = canonicalizePath
Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ library
118118 , Streamly.Coreutils.FileTest
119119 , Streamly.Coreutils.Ls
120120 , Streamly.Coreutils.String
121+ , Streamly.Coreutils.RealPath
121122 , Streamly.Coreutils.ShellWords
122123 , Streamly.Coreutils.Sleep
123124 , Streamly.Coreutils.Uniq
You can’t perform that action at this time.
0 commit comments