Simple module for creating temporary directories and files
This is a thin wrapper around Pythons tempfile module
New in version 2015.8.0.
salt.modules.temp.
dir
(suffix='', prefix='tmp', parent=None)¶Create a temporary directory
CLI Example:
salt '*' temp.dir
salt '*' temp.dir prefix='mytemp-' parent='/var/run/'
salt.modules.temp.
file
(suffix='', prefix='tmp', parent=None)¶Create a temporary file
CLI Example:
salt '*' temp.file
salt '*' temp.file prefix='mytemp-' parent='/var/run/'
Generated on February 25, 2019 at 06:53:47 MST.
You are viewing docs for the previous stable release, 2017.7.8. Switch to docs for the latest stable release, 2018.3.3, or to a recent doc build from the develop branch.
© 2019 SaltStack. All Rights Reserved, SaltStack Inc. | Privacy Policy