fs: combine require() and destructure
This commit combines two require()
calls and subsequent destructuring operations.
Side note: it looks like the new cp()
methods use the readdir()
functions. I imagine that people will use cp()
to copy large directory trees. We should probably look into incorporating the streaming read dir functions.