diff options
author | Joey Hess <joey@kitenet.net> | 2013-09-25 13:16:55 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-09-25 13:16:55 -0400 |
commit | d2b503f7edb486f31545633fc7c7b4a9999a271e (patch) | |
tree | 23b3358c665ce917e1f53858c5d6f844b4b09b5f /Seek.hs | |
parent | 13cb0a0e733773e16dd2dd9f79d1bddc5440cd60 (diff) |
import: Preserve top-level directory structure.
Diffstat (limited to 'Seek.hs')
-rw-r--r-- | Seek.hs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)] ) |