File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
hledger-lib/Hledger/Utils Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -450,12 +450,13 @@ expandHomePath = \case
450
450
-- ~username is not supported. Leaves "-" unchanged. Can raise an error.
451
451
expandPath :: FilePath -> FilePath -> IO FilePath -- general type sig for use in reader parsers
452
452
expandPath _ " -" = return " -"
453
- expandPath curdir p = (if isRelative p then (curdir </> ) else id ) <$> expandHomePath p
453
+ expandPath curdir p = (if isRelative p then (curdir </> ) else id ) <$> expandHomePath p -- PARTIAL:
454
454
455
455
-- | Like expandPath, but treats the expanded path as a glob, and returns
456
456
-- zero or more matched absolute file paths, alphabetically sorted.
457
+ -- Can raise an error.
457
458
expandGlob :: FilePath -> FilePath -> IO [FilePath ]
458
- expandGlob curdir p = expandPath curdir p >>= glob <&> sort
459
+ expandGlob curdir p = expandPath curdir p >>= glob <&> sort -- PARTIAL:
459
460
460
461
-- | Given a list of existing file paths, sort them by modification time, most recent first.
461
462
sortByModTime :: [FilePath ] -> IO [FilePath ]
You can’t perform that action at this time.
0 commit comments