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 @@ -98,6 +98,7 @@ library
9898 , Streamly.Coreutils.Common
9999 , Streamly.Coreutils.Cp
100100 , Streamly.Coreutils.FileTest
101+ , Streamly.Coreutils.RealPath
101102 , Streamly.Coreutils.ShellWords
102103 , Streamly.Coreutils.Uniq
103104 , Streamly.Coreutils.Which
You can’t perform that action at this time.
0 commit comments