try all drive letters
This commit is contained in:
parent
2066e90421
commit
4866ec84df
1 changed files with 4 additions and 0 deletions
|
@ -348,6 +348,9 @@ getEnableDirectoryR uuid = page "Enable a repository" (Just Configuration) $ do
|
|||
|
||||
{- List of removable drives. -}
|
||||
driveList :: IO [RemovableDrive]
|
||||
#ifdef mingw32_HOST_OS
|
||||
driveList = return $ map (:":") ['A'..'Z']
|
||||
#else
|
||||
#ifdef WITH_CLIBS
|
||||
driveList = mapM (gen . mnt_dir) =<< filter sane <$> getMounts
|
||||
where
|
||||
|
@ -375,6 +378,7 @@ driveList = mapM (gen . mnt_dir) =<< filter sane <$> getMounts
|
|||
#else
|
||||
driveList = return []
|
||||
#endif
|
||||
#endif
|
||||
|
||||
{- Bootstraps from first run mode to a fully running assistant in a
|
||||
- repository, by running the postFirstRun callback, which returns the
|
||||
|
|
Loading…
Reference in a new issue