Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/certbot/plugins/__pycache__/ |
Upload File : |
o 6��a� � @ sN d Z ddlZddlmZ ddlmZ ddlmZ e�e �Z dd� Zdd � ZdS ) zPlugin utilities.� N)�util)�os)�STANDARD_BINARY_DIRSc C sH t j�| �}g }|r"|�|� t j�|�\}}||d kr |S |s |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 �path�normpath�append�split)r �prefix�prefixes�_� r �6/usr/lib/python3/dist-packages/certbot/plugins/util.py�get_prefixes s �r c C s� t jd }g }tD ]}||vr|t j| 7 }|�|� q t|�r0t�d| t j�|�� |t jd<