File explorer program extracted from the book "Node.js, smashing it"