try different dir filter

This commit is contained in:
Aaron Greenspan
2019-12-24 22:29:29 -07:00
parent 2188208ce0
commit cf55eabec6

View File

@@ -75,7 +75,7 @@ loadRegistry rootDirectory = liftIO $ do
pure $ insert appId (fromList . catMaybes $ versionApps) registry
) empty appDirectories
where
getSubDirectories path = listDirectory path >>= filterM (fmap not . doesFileExist)
getSubDirectories path = listDirectory path >>= filterM doesDirectoryExist
getAppFileFromDir :: String -> String -> AppVersion -> IO (Maybe FilePath)