File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/client/ssh/wrapper/__pycache__/cp.cpython-310.pyc
Back
o ;j � @ s� d Z ddlZddlZddlZddlZddlZddlZddlm Z e� e�Zddd�Z ddd �Zdd d�Zddd �Zddd�Zddd�Zddd�Zdd� ZdS )z< Wrap the cp module allowing for managed ssh file transfers � N)�CommandExecutionError�baseFc C s� |dur t �d� |durt| |||�\} }td j| |tj�dtj d �d�}t jjj tdfi tj ��}|j�|||�}|d S ) z� Send a file from the master to the location in specified .. note:: gzip compression is not supported in the salt-ssh version of cp.get_file. The argument is only accepted for interface compatibility. Nz;The gzip argument to cp.get_file in salt-ssh is unsupported� fileclient�salt-ssh�id_�Zcachedir� � )�log�warning�_render_filenames�__context__� cache_file�os�path�join�__salt__�kwargs�salt�client�ssh�Single�__opts__�shell�send) r �dest�saltenv�makedirs�template�gzip�src�single�ret� r# �N/opt/saltstack/salt/lib/python3.10/site-packages/salt/client/ssh/wrapper/cp.py�get_file s � r% c C s` t d j| |tj�dtjd �d�}d�|�}tjj j tdfi tj��}|j� ||�}|d S )z# Transfer a directory down r r r r � r r )r Z cache_dirr r r r r r r r r r r r �r r r r r! r"