then KeyUnlockedThin
else KeyPresent
-getKeyFileStatus :: Key -> FilePath -> Annex KeyStatus
+getKeyFileStatus :: Key -> RawFilePath -> Annex KeyStatus
getKeyFileStatus key file = do
s <- getKeyStatus key
case s of
KeyUnlockedThin -> catchDefaultIO KeyUnlockedThin $
- ifM (isJust <$> isAnnexLink (toRawFilePath file))
+ ifM (isJust <$> isAnnexLink file)
( return KeyLockedThin
, return KeyUnlockedThin
)
(\t -> touch tmp' t False)
(fmap Posix.modificationTimeHiRes st)
#endif
- withTSDelta (liftIO . genInodeCache (toRawFilePath tmp))
+ withTSDelta (liftIO . genInodeCache tmp')
maybe noop (restagePointerFile (Restage True) file) ic
perform :: Key -> RawFilePath -> Backend -> NumCopies -> Annex Bool
perform key file backend numcopies = do
- keystatus <- getKeyFileStatus key (fromRawFilePath file)
+ keystatus <- getKeyFileStatus key file
check
-- order matters
[ fixLink key file