403Webshell
Server IP : 192.158.238.246  /  Your IP : 3.145.125.13
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/lib/python3.6/site-packages/setuptools/command/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.6/site-packages/setuptools/command/__pycache__/rotate.cpython-36.opt-1.pyc
3

9��ft�@s`ddlmZddlmZddlmZddlZddlZddlm	Z	ddl
mZGdd�de�ZdS)	�)�convert_path)�log)�DistutilsOptionErrorN)�six)�Commandc@s:eZdZdZdZdddgZgZdd
�Zdd�Zdd�Z	dS)�rotatezDelete older distributionsz2delete older distributions, keeping N newest files�match=�m�patterns to match (required)�	dist-dir=�d�%directory where the distributions are�keep=�k�(number of matching distributions to keepcCsd|_d|_d|_dS)N)�match�dist_dir�keep)�self�r�/usr/lib/python3.6/rotate.py�initialize_optionsszrotate.initialize_optionscCs�|jdkrtd��|jdkr$td��yt|j�|_Wntk
rPtd��YnXt|jtj�rxdd�|jjd�D�|_|j	dd	�dS)
NzQMust specify one or more (comma-separated) match patterns (e.g. '.zip' or '.egg')z$Must specify number of files to keepz--keep must be an integercSsg|]}t|j���qSr)r�strip)�.0�prrr�
<listcomp>+sz+rotate.finalize_options.<locals>.<listcomp>�,Zbdistr)rr)
rrr�int�
ValueError�
isinstancerZstring_types�splitZset_undefined_options)rrrr�finalize_optionss

zrotate.finalize_optionscCs�|jd�ddlm}x�|jD]�}|jj�d|}|tjj|j|��}dd�|D�}|j	�|j
�tjdt
|�|�||jd�}xD|D]<\}}tjd|�|js�tjj|�r�tj|�q�tj|�q�WqWdS)	NZegg_infor)�glob�*cSsg|]}tjj|�|f�qSr)�os�path�getmtime)r�frrrr6szrotate.run.<locals>.<listcomp>z%d file(s) matching %szDeleting %s)Zrun_commandr"rZdistributionZget_namer$r%�joinr�sort�reverser�info�lenrZdry_run�isdir�shutilZrmtree�unlink)rr"�pattern�files�tr'rrr�run/s 
z
rotate.runN)rr	r
)rrr
)rrr)
�__name__�
__module__�__qualname__�__doc__�descriptionZuser_optionsZboolean_optionsrr!r3rrrrrsr)
Zdistutils.utilrZ	distutilsrZdistutils.errorsrr$r.Zsetuptools.externrZ
setuptoolsrrrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit