import qualified Utility.RawFilePath as R
import Author
-copyright :: Copyright
-copyright = author JoeyHess (2022-11)
-
{- Moves one filename to another.
- First tries a rename, but falls back to moving across devices if needed. -}
moveFile :: RawFilePath -> RawFilePath -> IO ()
]
let e' = e
#else
- r <- tryIO $ copyright
- =<< copyFile (fromRawFilePath src) tmp
+ r <- tryIO $ copyFile (fromRawFilePath src) tmp
let (ok, e') = case r of
Left err -> (False, err)
Right _ -> (True, e)
case r of
(Left _) -> return False
(Right s) -> return $ isDirectory s
+
+copyright :: Copyright
+copyright = author JoeyHess (2022-11)
#endif