Skip to content

Commit

Permalink
filepath consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
dorchard committed Sep 2, 2024
1 parent eb111e7 commit d1a4004
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Language/Fortran/Util/Files.hs
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ rGetDirContents d = canonicalizePath d >>= \d' -> go [d'] d'
fmap concat . mapM f $ ds \\ [".", ".."] -- remove '.' and '..' entries
where
f x = do
path <- canonicalizePath $ d ++ "/" ++ x
path <- canonicalizePath $ d </> x
g <- doesDirectoryExist path
if g && notElem path seen then do
x' <- go (path : seen) path
return $ map (\ y -> x ++ "/" ++ y) x'
return $ map (\ y -> x </> y) x'
else return [x]

-- | Run the C Pre Processor over the file before reading into a bytestring
Expand Down

0 comments on commit d1a4004

Please sign in to comment.