graphorge.ioput.iostandard.make_directory

make_directory(directory, is_overwrite=False)[source]

Create a directory.

Parameters:
  • directory (str) – Directory path (without trailing slash).

  • is_overwrite (bool, default=False) – If True, then directory overwrites existing directory with the same name. If False, then directory is extended with ‘_int’ until non-existing directory is found, where int is an integer starting as 1.

Returns:

directory – Created directory path.

Return type:

str