Debug: add console log to m.createDir