Changing recursive directory traversal to iteration using Continuations.