automatically mkdir when save tmp file to disk