HEX
Server: LiteSpeed
System: Linux s787.bom1.mysecurecloudhost.com 4.18.0-477.13.1.lve.el8.x86_64 #1 SMP Thu Jun 1 16:40:47 EDT 2023 x86_64
User: mobilech (5348)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/temp.cpython-310.pyc
o

;j?�@s>dZddlZddlZddlZe�e�Zd	dd�Zd	dd�ZdS)
z�
Simple module for creating temporary directories and files

This is a thin wrapper around Pythons tempfile module

.. versionadded:: 2015.8.0

�N��tmpcCst�|||�S)z�
    Create a temporary directory

    CLI Example:

    .. code-block:: bash

        salt '*' temp.dir
        salt '*' temp.dir prefix='mytemp-' parent='/var/run/'
    )�tempfileZmkdtemp)�suffix�prefix�parent�r�E/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/temp.py�dirsr
cCs t�|||�\}}t�|�|S)z�
    Create a temporary file

    CLI Example:

    .. code-block:: bash

        salt '*' temp.file
        salt '*' temp.file prefix='mytemp-' parent='/var/run/'
    )rZmkstemp�os�close)rrrZfh_Ztmp_rrr	�files
r
)rrN)	�__doc__�loggingrr�	getLogger�__name__�logr
r
rrrr	�<module>s