LIB: fix isBrokenSymlink
This commit is contained in:
parent
fa3e5b3ff9
commit
83816ef1a6
@ -709,6 +709,7 @@ followSymlink af = af
|
|||||||
--
|
--
|
||||||
-- When called on a non-symlink, returns False.
|
-- When called on a non-symlink, returns False.
|
||||||
isBrokenSymlink :: File FileInfo -> Bool
|
isBrokenSymlink :: File FileInfo -> Bool
|
||||||
|
isBrokenSymlink af@(SymLink _ _ (_ :/ Failed {})) = True
|
||||||
isBrokenSymlink af@(SymLink {})
|
isBrokenSymlink af@(SymLink {})
|
||||||
= case followSymlink af of
|
= case followSymlink af of
|
||||||
(Failed {}) -> True
|
(Failed {}) -> True
|
||||||
|
Loading…
Reference in New Issue
Block a user