/ Published in: Python
Expand |
Embed | Plain Text
def ensure_dir(f): d = os.path.dirname(f) if not os.path.exists(d): os.makedirs(d)
You need to login to post a comment.
fnurl on 04/05/09
1 person have marked this snippet as a favorite
def ensure_dir(f): d = os.path.dirname(f) if not os.path.exists(d): os.makedirs(d)
You need to login to post a comment.