summaryrefslogtreecommitdiff
path: root/Seek.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-09-25 13:16:55 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-09-25 13:16:55 -0400
commitd2b503f7edb486f31545633fc7c7b4a9999a271e (patch)
tree23b3358c665ce917e1f53858c5d6f844b4b09b5f /Seek.hs
parent13cb0a0e733773e16dd2dd9f79d1bddc5440cd60 (diff)
import: Preserve top-level directory structure.
Diffstat (limited to 'Seek.hs')
-rw-r--r--Seek.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Seek.hs b/Seek.hs
index b0a634564..85b266d49 100644
--- a/Seek.hs
+++ b/Seek.hs
@@ -60,7 +60,7 @@ withPathContents :: ((FilePath, FilePath) -> CommandStart) -> CommandSeek
withPathContents a params = map a . concat <$> liftIO (mapM get params)
where
get p = ifM (isDirectory <$> getFileStatus p)
- ( map (\f -> (f, makeRelative p f)) <$> dirContentsRecursive p
+ ( map (\f -> (f, makeRelative (parentDir p) f)) <$> dirContentsRecursive p
, return [(p, takeFileName p)]
)