LIB: don't do anything for FileLike (CharDev etc) yet
This commit is contained in:
parent
ed32961155
commit
048bf8a328
@ -340,7 +340,7 @@ deleteDirRecursive f@(_ :/ Dir {}) = do
|
||||
case file of
|
||||
(_ :/ SymLink {}) -> deleteSymlink file
|
||||
(_ :/ Dir {}) -> deleteDirRecursive file
|
||||
(AFileLike _) -> removeLink (fullPath file)
|
||||
(_ :/ RegFile {}) -> removeLink (fullPath file)
|
||||
_ -> throw $ FileDoesExist (fullPath file)
|
||||
removeDirectory fp
|
||||
deleteDirRecursive _ = throw $ InvalidOperation "wrong input type"
|
||||
|
Loading…
Reference in New Issue
Block a user