LIB/GTK: refactor ViewPatterns/PatternSynonyms

This commit is contained in:
2015-12-26 22:00:08 +01:00
parent 83816ef1a6
commit 400a0242d6
4 changed files with 95 additions and 54 deletions

View File

@@ -362,7 +362,7 @@ executeFile _ _ = return Nothing
createFile :: AnchoredFile FileInfo -> FileName -> IO ()
createFile (SADir td) (ValFN fn) = do
createFile (ADirOrSym td) (ValFN fn) = do
let fullp = fullPath td </> fn
throwFileDoesExist fullp
fd <- System.Posix.IO.createFile fullp newFilePerms
@@ -371,7 +371,7 @@ createFile _ _ = return ()
createDir :: AnchoredFile FileInfo -> FileName -> IO ()
createDir (SADir td) (ValFN fn) = do
createDir (ADirOrSym td) (ValFN fn) = do
let fullp = fullPath td </> fn
throwDirDoesExist fullp
createDirectory fullp newFilePerms