Rewritten recursive parsing of filesystem