replace removeLink with removeFile
removeFile calls unlink so removes anything not a directory. So these are replaceable in order to convert to OsPath.
This commit is contained in:
parent
8af91a4c92
commit
5cc8d9d03b
9 changed files with 39 additions and 41 deletions
|
@ -771,7 +771,7 @@ stageJournal jl commitindex = withIndex $ withOtherTmp $ \tmpdir -> do
|
|||
stagedfs <- lines <$> hGetContents jlogh
|
||||
mapM_ (removeFile . (dir </>) . toOsPath) stagedfs
|
||||
hClose jlogh
|
||||
removeWhenExistsWith (R.removeLink) (fromOsPath jlogf)
|
||||
removeWhenExistsWith removeFile jlogf
|
||||
openjlog tmpdir = liftIO $ openTmpFileIn tmpdir (literalOsPath "jlog")
|
||||
|
||||
getLocalTransitions :: Annex Transitions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue