⚡ fonksiyon
copy_file
fonksiyon copy_file
Copy a file from source to destination.
Kaynaktan hedefe dosya kopyala.
Parameters / Parametreler
src: Source file path / Kaynak dosya yoludst: Destination file path / Hedef dosya yolu
Returns / Dönüş Değeri
Returns number of bytes copied, or error. Kopyalanan byte sayısını döner, veya hata.
Example / Örnek
değişken copied = io.copy_file("input.txt", "backup.txt")?
yazdır("Copied {copied} bytes")
Performance / Performans
O(n) where n=file size. Uses OS-level copy for efficiency. O(n) burada n=dosya boyutu. Verimlilik için OS seviyesi kopya kullanır.