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.6/site-packages/setuptools/command/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

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

��aP�@sTddlmZddlmZddlmZddlZddlZddlm	Z	Gdd�de	�Z
dS)�)�convert_path)�log)�DistutilsOptionErrorN)�Commandc@s6eZdZdZdddgZgZdd�Zd
d�Zdd�ZdS)�rotatez2delete 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_optionscCs�|jdkrtd��|jdkr$td��yt|j�|_Wn,tk
r`}ztd�|�WYdd}~XnXt|jt�r�dd�|jjd�D�|_|jdd	�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�
isinstance�str�splitZset_undefined_options)r�errr�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�frrrr4szrotate.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)rrr	)r
rr)r
rr)	�__name__�
__module__�__qualname__�descriptionZuser_optionsZboolean_optionsrr"r4rrrrr
sr)Zdistutils.utilrZ	distutilsrZdistutils.errorsrr%r/Z
setuptoolsrrrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit