Yes, mktemp can be used to created temporal directories. I think that using `-d` as in my example above does that.