I've only tested it with the root dir, but should work for all directories.
Turned out I was reading if a block was compressed exactly opposite. Started to work more on looking up dirs.