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. -}
|
{- List of removable drives. -}
|
||||||
driveList :: IO [RemovableDrive]
|
driveList :: IO [RemovableDrive]
|
||||||
#ifdef mingw32_HOST_OS
|
#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']
|
driveList = return $ map (:":") ['A'..'Z']
|
||||||
#else
|
#else
|
||||||
#ifdef WITH_CLIBS
|
#ifdef WITH_CLIBS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue