more OsPath conversion (602/749)
Sponsored-by: Brock Spratlen
This commit is contained in:
parent
2d1db7986c
commit
a5d48edd94
25 changed files with 227 additions and 187 deletions
|
@ -51,14 +51,17 @@ seek o = do
|
|||
where
|
||||
ww = WarnUnmatchLsFiles "inprogress"
|
||||
|
||||
start :: IsTerminal -> S.Set Key -> SeekInput -> RawFilePath -> Key -> CommandStart
|
||||
start :: IsTerminal -> S.Set Key -> SeekInput -> OsPath -> Key -> CommandStart
|
||||
start isterminal s _si _file k
|
||||
| S.member k s = start' isterminal k
|
||||
| otherwise = stop
|
||||
|
||||
start' :: IsTerminal -> Key -> CommandStart
|
||||
start' (IsTerminal isterminal) k = startingCustomOutput k $ do
|
||||
tmpf <- fromRawFilePath <$> fromRepo (gitAnnexTmpObjectLocation k)
|
||||
tmpf <- fromRepo (gitAnnexTmpObjectLocation k)
|
||||
whenM (liftIO $ doesFileExist tmpf) $
|
||||
liftIO $ putStrLn (if isterminal then safeOutput tmpf else tmpf)
|
||||
liftIO $ putStrLn $
|
||||
if isterminal
|
||||
then safeOutput (fromOsPath tmpf)
|
||||
else fromOsPath tmpf
|
||||
next $ return True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue