comment
This commit is contained in:
parent
4866ec84df
commit
a268ac6c1d
1 changed files with 2 additions and 0 deletions
|
@ -349,6 +349,8 @@ getEnableDirectoryR uuid = page "Enable a repository" (Just Configuration) $ do
|
|||
{- List of removable drives. -}
|
||||
driveList :: IO [RemovableDrive]
|
||||
#ifdef mingw32_HOST_OS
|
||||
-- Just enumerate all likely drive letters for Windows.
|
||||
-- Could use wmic, but it only works for administrators.
|
||||
driveList = return $ map (:":") ['A'..'Z']
|
||||
#else
|
||||
#ifdef WITH_CLIBS
|
||||
|
|
Loading…
Add table
Reference in a new issue