import: Preserve top-level directory structure.
This commit is contained in:
parent
9cae3a21f6
commit
c923c981b9
3 changed files with 4 additions and 4 deletions
2
Seek.hs
2
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)]
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue