Skip to content

Commit

Permalink
Simplify, rename, document some predicates
Browse files Browse the repository at this point in the history
  • Loading branch information
harendra-kumar committed Jul 25, 2022
1 parent 3cbe49e commit eefe965
Show file tree
Hide file tree
Showing 2 changed files with 143 additions and 156 deletions.
2 changes: 1 addition & 1 deletion src/Streamly/Coreutils/Cp.hs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ cpShouldOverwrite option src dest =
OverwriteUpdate -> do
r <- test dest isExisting
if r
then test src =<< isNewerThan dest
then test src =<< cmpModifyTime (>) dest
else return True

-- | @cp option-modifier source destination@. Copy a file or directory.
Expand Down
Loading

0 comments on commit eefe965

Please sign in to comment.