summaryrefslogtreecommitdiff
path: root/Seek.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-02-20 14:12:55 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-02-20 14:12:55 -0400
commitb2a46e18236e7cc8ff864bc4fed3b190efb161e5 (patch)
tree401e26f43c812ad30e9d5aa376c219f485bf2f24 /Seek.hs
parent27c02b4732c8087ba7d123f49ea2c10c7366cd4a (diff)
make adding modified files work on crippled filesystems
Diffstat (limited to 'Seek.hs')
-rw-r--r--Seek.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Seek.hs b/Seek.hs
index a531d2247..6f87e8e6c 100644
--- a/Seek.hs
+++ b/Seek.hs
@@ -88,6 +88,11 @@ withFilesUnlocked' typechanged a params = do
let unlockedfiles = liftIO $ filterM notSymlink typechangedfiles
prepFiltered a unlockedfiles
+{- Finds files that may be modified. -}
+withFilesMaybeModified :: (FilePath -> CommandStart) -> CommandSeek
+withFilesMaybeModified a params =
+ prepFiltered a $ seekHelper LsFiles.modified params
+
withKeys :: (Key -> CommandStart) -> CommandSeek
withKeys a params = return $ map (a . parse) params
where