Implementation that uses futures to parallelize file tree scan