MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / copy_file

Function copy_file

Lib/distutils/file_util.py:71–159  ·  view source on GitHub ↗

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 what

(src, dst, preserve_mode=1, preserve_times=1, update=0,
              link=None, verbose=1, dry_run=0)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

copy_treeFunction · 0.90
test_copy_fileMethod · 0.90
move_fileFunction · 0.85

Calls 14

DistutilsFileErrorClass · 0.90
newerFunction · 0.90
S_IMODEFunction · 0.90
_copy_file_contentsFunction · 0.85
utimeMethod · 0.80
chmodMethod · 0.80
isfileMethod · 0.45
isdirMethod · 0.45
joinMethod · 0.45
debugMethod · 0.45
infoMethod · 0.45
existsMethod · 0.45

Tested by 1

test_copy_fileMethod · 0.72