osutils.py 214 B

1234567891011
  1. from __future__ import absolute_import
  2. import os
  3. import errno
  4. def mkdir_if_missing(dir_path):
  5. try:
  6. os.makedirs(dir_path)
  7. except OSError as e:
  8. if e.errno != errno.EEXIST:
  9. raise