⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.30
Server IP:
45.79.8.107
Server:
Linux localhost 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.2-1ubuntu2.21
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3.10
/
distutils
/
__pycache__
/
View File Name :
file_util.cpython-310.pyc
o bc @ sb d Z ddlZddlmZ ddlmZ ddddZdd dZ dd dZ dddZ dd Z dS )zFdistutils.file_util Utility functions for operating on single files. N)DistutilsFileError)logcopyingzhard linkingzsymbolically linking)Nhardsym @ c C s d}d}zzt | d}W n ty! } z td| |jf d}~ww tj|rEzt| W n tyD } z td||jf d}~ww zt |d}W n tya } z td||jf d}~ww z||}W n ty } z td| |jf d}~ww |snz| | W n ty } z td ||jf d}~ww qcW |r| |r| dS dS |r| |r| w w ) a5 Copy the file 'src' to 'dst'; both must be filenames. Any error opening either file, reading from 'src', or writing to 'dst', raises DistutilsFileError. Data is read/written in chunks of 'buffer_size' bytes (default 16k). No attempt is made to handle anything apart from regular files. Nrbzcould not open '%s': %szcould not delete '%s': %swbzcould not create '%s': %sTzcould not read from '%s': %szcould not write to '%s': %s)openOSErrorr strerrorospathexistsunlinkreadwriteclose)srcdstbuffer_sizefsrcfdstebuf r */usr/lib/python3.10/distutils/file_util.py_copy_file_contents sr r c C s ddl m} ddlm} m} m}m} tj | st d| tj|r2|} tj|tj | }ntj|} |rM|| |sM|dkrItd| |dfS zt| }W n ty` td| w |dkrtj |tj | krztd|| | ntd|| | |r|dfS |d krtj|rtj| |szt| | |dfW S ty Y nw n|d krtj|rtj| |st| | |dfS t| | |s|rt| }|rt||| || f |rt|||| |dfS )a Copy a file 'src' to 'dst'. If 'dst' is a directory, then 'src' is copied there with the same name; otherwise, it must be a filename. (If the file exists, it will be ruthlessly clobbered.) If 'preserve_mode' is true (the default), the file's mode (type and permission bits, or whatever is analogous on the current platform) is copied. If 'preserve_times' is true (the default), the last-modified and last-access times are copied as well. If 'update' is true, 'src' will only be copied if 'dst' does not exist, or if 'dst' does exist but is older than 'src'. 'link' allows you to make hard links (os.link) or symbolic links (os.symlink) instead of copying: set it to "hard" or "sym"; if it is None (the default), files are copied. Don't set 'link' on systems that don't support it: 'copy_file()' doesn't check if hard or symbolic linking is available. If hardlink fails, falls back to _copy_file_contents(). Under Mac OS, uses the native file copy function in macostools; on other systems, uses '_copy_file_contents()' to copy file contents. Return a tuple (dest_name, copied): 'dest_name' is the actual name of the output file, and 'copied' is true if the file was copied (or would have been copied, if 'dry_run' true). r )newer)ST_ATIMEST_MTIMEST_MODES_IMODEz4can't copy '%s': doesn't exist or not a regular filer z"not copying %s (output up-to-date)z&invalid value '%s' for 'link' argumentz%s %s -> %sr r )distutils.dep_utilr statr r! r" r# r r isfiler isdirjoinbasenamedirnamer debug_copy_actionKeyError ValueErrorinfor samefilelinkr symlinkr utimechmod)r r preserve_modepreserve_timesupdater1 verbosedry_runr r r! r" r# diractionstr r r copy_fileC s\ ! r= c C s ddl m}m}m}m}m} ddl} |dkrtd| | |r!|S || s+t d| ||r9t j||| }n||rEt d| |f |||sSt d| |f d } zt | | W n( ty } z|j\}} || jkrrd } n t d| || f W Y d}~nd}~ww | rt| ||d zt | W |S ty } z |j\}} zt | W n ty Y nw t d | || | f d}~ww |S )a% Move a file 'src' to 'dst'. If 'dst' is a directory, the file will be moved into it with the same name; otherwise, 'src' is just renamed to 'dst'. Return the new full name of the file. Handles cross-device moves on Unix using 'copy_file()'. What about other systems??? r )r r&