exec: makedir() accept Union[str, int] for user and group
This commit is contained in:
parent
6cce302dcc
commit
606a7a9af3
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue