See note about async operations from @dangoor below.  Typically you would wait for a promise to resolve but I think node uses a callback mechanism for async.   Not sure if we need to worry about it for `mkDir` but wanted to mention it for posterity sake