Create separate methods for recursive file system calls.