| Server IP : 138.197.162.186 / Your IP : 216.73.216.184 Web Server : nginx/1.24.0 System : Linux ubuntu-s-1vcpu-512mb-10gb-tor1 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/certbot/plugins/__pycache__/ |
Upload File : |
�
M/�e � � � d Z ddlZddlmZ ddlmZ ddlmZ ddlm Z ej e� Zde
dee
fd �Zd
e
defd�Zy)zPlugin utilities.� N)�List)�util)�os)�STANDARD_BINARY_DIRS�path�returnc �� � t j j | � }g }|rA|j |� t j j |� \ }}||d k( r |S |r�A|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�_s �6/usr/lib/python3/dist-packages/certbot/plugins/util.py�get_prefixesr sb � � �W�W�
�
�d�
#�F��H�
�������G�G�M�M�&�)� ����X�b�\�!���O�
� �O� �cmdc � � t j d }g }t D ]. }||vs�|t j |z z
}|j |� �0 t |� rGt j d| t j j |� � |t j d<