File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/wheel/__pycache__/file_roots.cpython-310.pyc
Back
o ;j4 � @ sP d Z ddlZddlZddlZddd�Zddd�Zdd � Zdd d�Zddd �Z dS )zB Read in files from the file_root and save files to the file root � N�basec C s� g }|t d vr |S t d | D ]H}tj�|| �}tjjj||dd�s$qtj�|�rXtjj � |d��}tjj �|�rB|�|di� n|�|di� W d � n1 sSw Y q|S )zP Return a dict of the files located with the given path and environment � file_rootsT�Zsubdir�rb�txt�binN) �__opts__�os�path�join�salt�utils�verify� clean_path�isfile�files�fopenZis_text�append)r �saltenv�ret�root�full�fp_� r �I/opt/saltstack/salt/lib/python3.10/site-packages/salt/wheel/file_roots.py�find s ���r c C s� i }| t d vr |S t d | D ]\}i ||<