RawFilePath optimisations
This commit is contained in:
parent
224a57f9ed
commit
d00e23cac9
3 changed files with 4 additions and 4 deletions
|
@ -898,12 +898,12 @@ getKeyStatus key = catchDefaultIO KeyMissing $ do
|
|||
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
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue