5 ms·
macOS has a couple platform-specific APIs for copying/cloning files that’re worth looking at - copyfile: https://developer.apple.com/library/archive/documentat
by Jarred 5y ago
macOS has a couple platform-specific APIs for copying/cloning files that’re worth looking at
- copyfile: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/fcopyfile.3.html https://developer.apple.com/library/archive/documentation/Sy...
- clonefile: https://www.unix.com/man-page/mojave/2/clonefile/ https://www.unix.com/man-page/mojave/2/clonefile/
- ribit 5y agoJust wanted to mention those. On modern macOS using clonefile()directly is likely the fastest option.