Push the pointer forward to only mkdir when needed.