Skip to content

Commit

Permalink
Fixed problem where find wouldn't do name node switchover properly
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobstanley committed Jul 24, 2015
1 parent 6581fe0 commit 7ef45cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ subFind = SubCommand "find" "Recursively search a directory tree" go
<*> optional (option bstr (long "name" <> metavar "FILENAME"
<> help "the file name to match"))
find mpath mexpr = SubHdfs $ do
_ <- getFileInfo "/"
matcher <- liftIO (mkMatcher mexpr)
printFindResults (fromMaybe "" mpath) matcher

Expand Down

0 comments on commit 7ef45cf

Please sign in to comment.