python-CSD-kursu/python-temel/binary.rb.wb.py~

9 lines
259 B
Python
Raw Normal View History

2023-08-26 21:56:01 +03:00
def copy_file(source_path, dest_path):
with open(source_path, 'rb') as fs:
with open(dest_path, 'wb') as fd:
while True:
b = fs.read(4096)
if not b:
break
fd.write(b)