| Server IP : 93.115.150.27 / Your IP : 216.73.216.221 Web Server : LiteSpeed System : Linux host2.azar.host 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64 User : dorfakkh ( 1797) PHP Version : 8.1.34 Disable Function : show_source, system, passthru, exec, popen, proc_open, mail MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/lib/python3.6/site-packages/certbot/plugins/__pycache__/ |
Upload File : |
3
گa � @ sn d Z ddlZddlmZ ddlmZ ddlmZ ddlm Z ej
e�Ze
ee
d�dd �Ze
ed
�dd�ZdS )
zPlugin utilities.� N)�List)�util)�os)�STANDARD_BINARY_DIRS)�path�returnc C sF t jj| �}g }x0|r@|j|� t jj|�\}}||d krP qW |S )a� Retrieves all possible path prefixes of a path, in descending order
of length. For instance:
* (Linux) `/a/b/c` returns `['/a/b/c', '/a/b', '/a', '/']`
* (Windows) `C:\a\b\c` returns `['C:\a\b\c', 'C:\a\b', 'C:\a', 'C:']`
:param str path: the path to break into prefixes
:returns: all possible path prefixes of given path in descending order
:rtype: `list` of `str`
� ���)r r �normpath�append�split)r �prefix�prefixes�_� r �/usr/lib/python3.6/util.py�get_prefixes s
r )�cmdr c C s� t jd }g }x,tD ]$}||kr|t j| 7 }|j|� qW t|�rdtjd| t jj|�� |t jd<