fix removeLink on windows
This removeLink was introduced in commit
e505c03bcc
, which replaced code
that used removeFile on Windows. So, I know git-annex did not used to do
anything other than removeFile on Windows. If there were symlinks it
wanted to remove, this would not work on windows, but of course it does
not use symlinks on windows.
This commit is contained in:
parent
c3be0c8dd2
commit
9cb250f7be
1 changed files with 3 additions and 1 deletions
|
@ -66,8 +66,10 @@ createLink a b = P.createLink
|
|||
(fromRawFilePath a)
|
||||
(fromRawFilePath b)
|
||||
|
||||
{- On windows, removeLink is not available, so only remove files,
|
||||
- not symbolic links. -}
|
||||
removeLink :: RawFilePath -> IO ()
|
||||
removeLink = P.removeLink . fromRawFilePath
|
||||
removeLink = D.removeFile . fromRawFilePath
|
||||
|
||||
getFileStatus :: RawFilePath -> IO FileStatus
|
||||
getFileStatus = P.getFileStatus . fromRawFilePath
|
||||
|
|
Loading…
Add table
Reference in a new issue