cratepy.ioput.fileoperations.make_directory

make_directory(dir, option='no_overwrite')[source]

Create new directory.

Parameters:
  • dir (str) – Path of new directory.

  • option ({'no_overwrite', 'overwrite'}, default='no_overwrite') – Either to overwrite or not an existing path.