OSHelpers
psengine.helpers.helpers.OSHelpers
¶
Helpers for OS related functions.
mkdir
staticmethod
¶
Safely create a directory.
PARAMETER | DESCRIPTION |
---|---|
path
|
Path to directory to create.
TYPE:
|
RAISES | DESCRIPTION |
---|---|
ValueError
|
If path is not a string or is empty. |
WriteFileError
|
If the directory is not writable. |
RETURNS | DESCRIPTION |
---|---|
Path
|
Path to the directory created. |
Source code in psengine/helpers/helpers.py
os_platform
staticmethod
¶
Get the OS platform information, for example: macOS-13.0-x86_64-i386-64bit
.
RETURNS | DESCRIPTION |
---|---|
Optional[str]
|
OS platform info string, or None if unavailable. |