| Server IP : 173.249.148.11 / Your IP : 216.73.216.179 Web Server : Apache/2.4.68 (AlmaLinux) System : Linux developmentwebsite.ca 4.18.0-553.168.1.el8_10.x86_64 #1 SMP Thu Sep 24 18:05:46 UTC 2026 x86_64 User : devinter ( 1006) PHP Version : 8.3.35 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /snap/certbot/current/lib/python3.12/site-packages/certbot/plugins/__pycache__/ |
Upload File : |
�
��j� � �~ � d Z ddlZddlmZ ddlmZ ddlmZ ej e � Z
dedee fd�Z
d edefd
�Zy)zPlugin utilities.� N)�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 �P/root/parts/certbot/install/lib/python3.12/site-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<