| Server IP : 121.121.20.254 / Your IP : 216.73.217.141 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Python315/Lib/__pycache__/ |
Upload File : |
R
>lqj�* c � � Q s ] PHs] PHs] QHGs ] QHGs , QNs- sQs , QNs
Q sQQ ksQ s
Q s Q Q2 sQQ ks\\1Q
ksQ sQ s\Q
6X c
\ 2 P! P! )z�Utilities for comparing files and directories.
Classes:
dircmp
Functions:
cmp(f1, f2, shallow=True) -> int
cmpfiles(a, b, common) -> ([], [], [])
clear_cache()
)�filterfalse)�GenericAlias�dircmpc �0 � [ O 2 P! )zClear the filecmp cache.)�_cache�clear� � �C:\Python315\\Lib\filecmp.py�clear_cacher
s � �
�L�L�Nr c �� � [ [ O U 2 2 o[ [ O U2 2 oU] * [ O 6w f U] * [ O 6w c P
! U% c V46X c P ! U]* U]* 6w c P
! [ O VV412 oUe5 [
V2 o[ [ 2 ]d6� c [ 2 U[ VV41$ U! )a Compare two files.
Arguments:
f1 -- First file name
f2 -- Second file name
shallow -- treat files as identical if their stat signatures (type, size,
mtime) are identical. Otherwise, files are considered different
if their sizes or contents differ. [default: True]
Return value:
True if the files are the same, False otherwise.
This function uses a cache for past comparisons and the results,
with cache entries invalidated if their stat information
changes. The cache may be cleared by calling clear_cache().
) �_sig�os�stat�S_IFREGr �get�_do_cmp�lenr
)�f1�f2�shallow�s1�s2�outcomes &&& r �cmpr s� � �.
�b�g�g�b�k� �B�
�b�g�g�b�k� �B� �!�u������1����� 5���2�8�� �!�u��1��~���j�j�"�"�)�*�G����"�/���v�;����M�!(��r�r�~���Nr c �r � [ O U O 2 U O U O 1! �N)r �S_IFMT�st_mode�st_size�st_mtime)�sts &r r r F s* � ��K�K��
�
�#��J�J��K�K�� r c �x � [ o[ U Q 2 9^tt^ 2 o[ UQ 2 9^tt^ 2 o UO U2 oUO U2 oVV6w c PPP2 PPP2 P
! U% c JF PPP2 PPP2 P ! ) % f h L9 hPPP2 P! ) % f h P! 9 h)�rb)�BUFSIZE�open�read)r r �bufsize�fp1�fp2�b1�b2s && r r r K sq � ��G�
�b�$���3��R����#�����'�"�B����'�"�B��x�� !/��� �2�� !/����������sF �B(�)B �B �B(�.B �8B �9B(�B
�B
�B(�(B9 �1B9 c � ` � \ sQ s]Xs n QsQQP -Q kksQ sQ sQ sQ s Q s
Q sQ
sQ s
Q s\ \
\ \ \ \\\\\\\\Q
5 sQ s\ \2 sQsU sP! )r a� A class that manages the comparison of 2 directories.
dircmp(a, b, ignore=None, hide=None, *, shallow=True)
A and B are directories.
IGNORE is a list of names to ignore,
defaults to DEFAULT_IGNORES.
HIDE is a list of names to hide,
defaults to [os.curdir, os.pardir].
SHALLOW specifies whether to just check the stat signature (do not read
the files).
defaults to True.
High level usage:
x = dircmp(dir1, dir2)
x.report() -> prints a report on the differences between dir1 and dir2
or
x.report_partial_closure() -> prints report on differences between dir1
and dir2, and reports on common immediate subdirectories.
x.report_full_closure() -> like report_partial_closure,
but fully recursive.
Attributes:
left_list, right_list: The files in dir1 and dir2,
filtered by hide and ignore.
common: a list of names in both dir1 and dir2.
left_only, right_only: names only in dir1, dir2.
common_dirs: subdirectories in both dir1 and dir2.
common_files: files in both dir1 and dir2.
common_funny: names in both dir1 and dir2 where the type differs between
dir1 and dir2, or the name is not stat-able.
same_files: list of identical files.
diff_files: list of filenames which differ.
funny_files: list of files which could not be compared.
subdirs: a dictionary of dircmp instances (or MyDirCmp instances if this
object is of type MyDirCmp, a subclass of dircmp), keyed by names
in common_dirs.
r c � � Vm V m Ue'