mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
return value for mkdir instead of None
This commit is contained in:
parent
1a4833b3a1
commit
13022c5cc4
1 changed files with 2 additions and 0 deletions
|
@ -4586,6 +4586,8 @@ def mkdir(dir_path,
|
|||
# to follow the principal of least surprise method.
|
||||
makedirs_perms(directory, user, group, mode)
|
||||
|
||||
return os.path.isdir(directory)
|
||||
|
||||
|
||||
def makedirs_(path,
|
||||
user=None,
|
||||
|
|
Loading…
Add table
Reference in a new issue