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
|
case file of
|
||||||
(_ :/ SymLink {}) -> deleteSymlink file
|
(_ :/ SymLink {}) -> deleteSymlink file
|
||||||
(_ :/ Dir {}) -> deleteDirRecursive file
|
(_ :/ Dir {}) -> deleteDirRecursive file
|
||||||
(AFileLike _) -> removeLink (fullPath file)
|
(_ :/ RegFile {}) -> removeLink (fullPath file)
|
||||||
_ -> throw $ FileDoesExist (fullPath file)
|
_ -> throw $ FileDoesExist (fullPath file)
|
||||||
removeDirectory fp
|
removeDirectory fp
|
||||||
deleteDirRecursive _ = throw $ InvalidOperation "wrong input type"
|
deleteDirRecursive _ = throw $ InvalidOperation "wrong input type"
|
||||||
|
Loading…
Reference in New Issue
Block a user