mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add mkdir
This commit is contained in:
parent
9d55bff914
commit
18d41f7711
1 changed files with 4 additions and 3 deletions
|
@ -2007,9 +2007,10 @@ def script(source,
|
|||
if salt.utils.is_windows() and runas and cwd is None:
|
||||
cwd = os.path.join(__opts__['cachedir'], 'wintmp')
|
||||
if not os.path.isdir(cwd):
|
||||
ret = __salt__['win_dacl.add_ace'](
|
||||
cwd, 'File', runas, 'READ&EXECUTE', 'ALLOW',
|
||||
'FOLDER&SUBFOLDERS&FILES')
|
||||
__salt__['file.mkdir'](root)
|
||||
ret = __salt__['win_dacl.add_ace'](
|
||||
cwd, 'File', runas, 'READ&EXECUTE', 'ALLOW',
|
||||
'FOLDER&SUBFOLDERS&FILES')
|
||||
|
||||
path = salt.utils.mkstemp(dir=cwd, suffix=os.path.splitext(source)[1])
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue