make_dir#

make_dir(path, check_empty=False, force_empty=False, use_dirname=False)[source]#

Make a local directory.

Parameters
  • path – path to directory

  • check_empty – if True, check that directory is empty

  • force_empty – if True, delete files if necessary to make directory empty

  • use_dirname – if True, use the the parent directory as path

Raises

ValueError if check_empty is True and directory is not empty