more OsPath conversion

About 1/10th done with this I think.
This commit is contained in:
Joey Hess 2025-01-24 13:40:09 -04:00
parent 8021d22955
commit c412c59ecd
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
16 changed files with 152 additions and 142 deletions

View file

@ -16,7 +16,7 @@ import Utility.Exception
{- ~/.config/git-annex/file -}
userConfigFile :: OsPath -> IO OsPath
userConfigFile file = do
dir <- toOsPath <$> userConfigDir
dir <- userConfigDir
return $ dir </> literalOsPath "git-annex" </> file
autoStartFile :: IO OsPath

View file

@ -30,8 +30,7 @@ modifyAutoStartFile func = do
when (dirs' /= dirs) $ do
f <- autoStartFile
createDirectoryIfMissing True (parentDir f)
viaTmp (writeFile . fromRawFilePath . fromOsPath)
(toOsPath f)
viaTmp (writeFile . fromRawFilePath . fromOsPath) f
(unlines (map fromOsPath dirs'))
{- Adds a directory to the autostart file. If the directory is already