exec: makedir() accept Union[str, int] for user and group

This commit is contained in:
InsanePrawn 2022-08-29 20:18:41 +02:00
parent 6cce302dcc
commit 606a7a9af3

View file

@ -144,7 +144,7 @@ def remove_file(path: str, recursive=False):
raise Exception(f"Unable to remove {path}: cmd returned {rc}")
def makedir(path, user: Optional[str] = None, group: Optional[str] = None, parents: bool = True):
def makedir(path, user: Optional[Union[str, int]] = None, group: Optional[Union[str, int]] = None, parents: bool = True):
if not root_check_exists(path):
try:
if parents: