403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.9/site-packages/setuptools/command/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/setuptools/command/__pycache__/rotate.cpython-39.opt-2.pyc
a

��eT�@s`ddlmZddlmZddlmZddlZddlZddlm	Z	ddl
mZGdd�de�ZdS)	�)�convert_path)�log)�DistutilsOptionErrorN)�List)�Commandc@sBeZdZUdZgd�ZgZeeed<dd�Z	dd�Z
dd	�Zd
S)�rotatez2delete older distributions, keeping N newest files))zmatch=�mzpatterns to match (required))z	dist-dir=�dz%directory where the distributions are)zkeep=�kz(number of matching distributions to keep�boolean_optionscCsd|_d|_d|_dS)N)�match�dist_dir�keep)�self�r�=/usr/lib/python3.9/site-packages/setuptools/command/rotate.py�initialize_optionsszrotate.initialize_optionsc
Cs�|jdurtd��|jdur$td��zt|j�|_Wn.tyb}ztd�|�WYd}~n
d}~00t|jt�r�dd�|j�d�D�|_|�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|����qSr)r�strip)�.0�prrr�
<listcomp>)�z+rotate.finalize_options.<locals>.<listcomp>�,Zbdist)r
r
)	rrr�int�
ValueError�
isinstance�str�splitZset_undefined_options)r�errr�finalize_optionss
�
 zrotate.finalize_optionscCs�|�d�ddlm}|jD]�}|j��d|}|tj�|j|��}dd�|D�}|�	�|�
�t�dt
|�|�||jd�}|D]<\}}t�d|�|js�tj�|�r�t�|�q�t�|�q�qdS)	NZegg_infor)�glob�*cSsg|]}tj�|�|f�qSr)�os�path�getmtime)r�frrrr3rzrotate.run.<locals>.<listcomp>z%d file(s) matching %szDeleting %s)Zrun_commandr rZdistributionZget_namer"r#�joinr
�sort�reverser�info�lenr�dry_run�isdir�shutil�rmtree�unlink)rr �pattern�files�tr%rrr�run,s 

z
rotate.runN)�__name__�
__module__�__qualname__�descriptionZuser_optionsrrr�__annotations__rrr3rrrrrs
r)
Zdistutils.utilr�	distutilsrZdistutils.errorsrr"r-�typingrZ
setuptoolsrrrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit