hpacker: Move FileTree methods into separate object file