summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Chroot/Util.hs
diff options
context:
space:
mode:
authorNicolas Schodet2017-10-19 21:35:29 +0200
committerNicolas Schodet2017-10-19 21:35:29 +0200
commitb437fa963d7e44945d24c1c5a6453cebcaf7a682 (patch)
tree1173ae1479f821876f42e1594371e4f501309678 /src/Propellor/Property/Chroot/Util.hs
parentd9f2eb343edfcdc66cf3f58cc6b7846cc3ca6b35 (diff)
Use isUnpopulated when creating a chroot or restoring a backupignore-lost-n-found
Diffstat (limited to 'src/Propellor/Property/Chroot/Util.hs')
-rw-r--r--src/Propellor/Property/Chroot/Util.hs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/Propellor/Property/Chroot/Util.hs b/src/Propellor/Property/Chroot/Util.hs
index ac703136..fd91e984 100644
--- a/src/Propellor/Property/Chroot/Util.hs
+++ b/src/Propellor/Property/Chroot/Util.hs
@@ -27,7 +27,3 @@ removeChroot :: FilePath -> IO ()
removeChroot c = do
unmountBelow c
removeDirectoryRecursive c
-
--- | Returns true if a chroot directory is empty.
-unpopulated :: FilePath -> IO Bool
-unpopulated d = null <$> catchDefaultIO [] (dirContents d)