Support recursive file detection