blob: 6db488bbcdfa78addab4c833054193d02510d2d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
{- Copyright 2017 Joey Hess <id@joeyh.name>
-
- Licensed under the GNU AGPL version 3 or higher.
-}
module DotDir where
import System.Posix
import System.Directory
import System.FilePath
dotDir :: IO FilePath
dotDir = do
home <- homeDirectory <$> (getUserEntryForID =<< getEffectiveUserID)
let dir = home </> ".debug-me"
createDirectoryIfMissing False dir
return dir
|