Bug fix: listDir was accidentally using error callback.