make_dir#

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

Make a local directory.

Parameters:
  • path (str) – path to directory

  • check_empty (bool) – if True, check that directory is empty

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

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

Raises:

ValueError if check_empty is True and directory is not empty