distrax.utils.fileio.create_dir#

distrax.utils.fileio.create_dir(path, mode, admin=False)[source]#

Create new directory with the path and mode specified.

Parameters:
  • path (str) – The path of the folder

  • mode (int) – The permissions of the directory using linux access codes

  • admin (bool) – To run under escalted privileges

Return type:

bool

Returns:

True if successful else False

Examples

>>> distrax.utils.fileio.create_dir("directory_path", 664)