Skip to content

Instantly share code, notes, and snippets.

@budenny
budenny / clone.cpp
Created January 8, 2019 21:21
using APFS file clone feature
#include <iostream>
#include <copyfile.h>
#include <time.h>
int main(int argc, const char * argv[]) {
if (argc < 3){
std::cout << "incorrect usage\n";
return -1;
}