Need to create a new promise for this callback to complete before calling ``brackets.fs.readdir`` below.