| Server IP : 185.143.234.238 / Your IP : 185.215.232.195 Web Server : Apache System : Linux 81-12-52-146.cprapid.com 4.18.0-553.76.1.lve.el8.x86_64 #1 SMP Wed Oct 1 16:05:07 UTC 2025 x86_64 User : noavaranesama ( 1039) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/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<