HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/temp.cpython-310.pyc
o

�N�g?�@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