This is either going to create a directory named "dir" in the working directory of Chef (wherever that may be) or it is going to cause some kind of error. Did you actually test if this worked?