403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.216.124
Web Server : Apache
System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
User : c9415830 ( 11735)
PHP Version : 8.4.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python36/lib64/python3.6/Tools/scripts/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python36/lib64/python3.6/Tools/scripts/__pycache__/treesync.cpython-36.opt-1.pyc
3

x2_S�@s�dZddlZddlZddlZddlZdadadadada	dd�Z
dd	�Zd
d�ZdZ
dd�Zdd�Zdd�Zddd�Zdd�Zddd�Zedkr�e
�dS) a�Script to synchronize two source trees.

Invoke with two arguments:

python treesync.py slave master

The assumption is that "master" contains CVS administration while
slave doesn't.  All files in the slave tree that have a CVS/Entries
entry in the master tree are synchronized.  This means:

    If the files differ:
        if the slave file is newer:
            normalize the slave file
            if the files still differ:
                copy the slave to the master
        else (the master is newer):
            copy the master to the slave

    normalizing the slave means replacing CRLF with LF when the master
    doesn't use CRLF

�N�ask�yes�nocCs�tjtjdd�d�\}}xp|D]h\}}|dkr4da|dkr@da|dkrL|a|dkrX|a|d	krd|a|d
krp|a|dkr |aaaaq Wy|\}}Wn@tk
r�t	dtjd
p�ddd�t	ddd�t	d�dSXt
||�dS)N�znym:s:d:f:a:z-yrz-nrz-sz-mz-dz-fz-az
usage: pythonrztreesync.py� )�endz5[-n] [-y] [-m y|n|a] [-s y|n|a] [-d y|n|a] [-f n|y|a]zslavedir masterdir)�getopt�sys�argv�default_answer�write_slave�write_master�create_directories�create_files�
ValueError�print�process)Zopts�args�o�a�slave�master�r�;/opt/alt/python36/lib64/python3.6/Tools/scripts/treesync.py�main#s0rcCs�tjj|d�}tjj|�s0td|�td�dStdd�td|�td|�tjj|�s�td|td	�s�td|�td
|�dStd|�ytj|�Wn.tk
r�}ztd|d
|�dSd}~XnXtd|�d}g}tj	|�}x`|D]X}tjj||�}tjj||�}|dk�r|}q�tjj|�r�tjj
|�r�|j||f�q�W|�r�tjj|d�}	xjt|	�j
�D]Z}
|
jd�}|ddk�rl|dd��rl|d}tjj||�}tjj||�}
t||
��qlWx|D]\}}
t||
��q�WdS)NZCVSzskipping master subdirectoryz-- not under CVS�-�(zslave rzcreate slave directory %s?)�answerz-- no corresponding slavezcreating slave directoryzcan't make slave directory�:zmade slave directoryZEntries�/r�r)�os�path�join�isdirr�okayr�mkdir�OSError�listdir�islink�append�open�	readlines�split�comparer)rrZcvsdir�msgZsubdirs�names�nameZ
masternameZ	slavenameZentries�eZwords�s�mrrrr?sT










rcCsfyt|d�}Wntk
r&d}YnXyt|d�}Wntk
rNd}YnX|s�|sftd|�dStd|�t||td�dS|s�td|�dS|r�|r�t||�r�dSt|�}t|�}||kr�|j�|j�td|�td|�t||td�dStd	||d
�|j	d�t
|�}|j�|j�|�rJtd�t||dtd�ntd
�t||dtd�dS)N�r�rbzNeither master nor slave existszCreating missing slave)rzNot updating missing masterzMaster             zis newer than slavezSlave iszseconds newer than masterrz#***UPDATING MASTER (BINARY COPY)***z***UPDATING MASTER***)r+�IOErrorr�copyr�	identical�mtime�closer�seek�
funnycharsr
)rr�sf�mfZsftZmftZfunrrrr.msP








r.�icCs0x*|jt�}|jt�}||kr"dS|sPqWdS)Nrr)�read�BUFSIZE)r>r?ZsdZmdrrrr9�s

r9cCstj|j��}|tjS)N)r!�fstat�fileno�stat�ST_MTIME)�f�strrrr:�sr:cCs.x(|jt�}|sPd|ks"d|krdSqWdS)N�
�rr)rArB)rG�bufrrrr=�s
r=r6�wbcCsjtd|�td|�td|�s"dSt||�}t||�}x|jt�}|sHP|j|�q8W|j�|j�dS)NZcopyingz     tozokay to copy? )rr%r+rArB�writer;)�src�dstZrmodeZwmoderrG�grKrrrr8�s





r8cCs tjj|�tjj�tjj�S)N)r	�stdoutrM�flush�stdin�readline)�promptrrr�	raw_input�s
rVcCsr|j�j�}|s|ddkr:t|�}|j�j�}|s:t}|dd�dkrNdS|dd�dkrbdStd�t|�S)NrZnyr�y�nzYes or No please -- try again:)�strip�lower�inputrrr%)rUrrrrr%�sr%�__main__i@)r6rLr)r)�__doc__r!r	rErrrrrr
rrr.rBr9r:r=r8rVr%�__name__rrrr�<module>s$ ..



Youez - 2016 - github.com/yon3zu
LinuXploit