shlogg · Early preview
Super Kai (Kazuya Ito) @superkai_kazuya

Path.mkdir() With Parents And Exist_ok Options Explained.

Path.mkdir()` creates zero or more directories. `parents=True` allows creation of non-existent parent dirs, while `exist_ok=True` prevents raising errors for existing paths.

Buy Me a Coffee☕
Path.mkdir() can create zero or more directories as shown below:
*Memos:

There is the 1st argument for Path() (Required-Type:str, bytes or os.PathLike). *Its argument name doesn't exist.
The 1st argument is mode for mkdir() (Optional-Default:0o777-Type:int).
The 2nd argument is parents for mkdir() (Optional-Default:False-Type:bool):
*Memos:

If it's False, the path with a target directory and one or more non-existent parent directories cannot be created, getting FileNotFoundError.
If it's True, the path with a target directory and one or more non-existent parent directories...