pyslk.mkdir_raw#
- pyslk.mkdir_raw(gns_path: str | Path, recursive: bool = False, parents: bool = False, return_type: int = 0) str | int | CompletedProcess #
Create a directory
- Parameters:
gns_path (str or Path) – gns path to create
recursive (bool) – use the -R create folders recursively; throw error if folder already exists
parents (bool) – create parent folders recursively; throw no error if folder already exists (like ‘mkdir -p’)
return_type (int) – select between 0 (== str output), 1 (== exit code), 2 (subprocess output)
- Returns:
stdout of the slk_helpers call
- Return type:
Union[str, int, subprocess.CompletedProcess]