Easiest way to programmatically copy a sparse file?

369 Views Asked by At

I'm trying to copy a sparse file in C++. Unfortunately, std::experimental::copy_file ignores the sparsity (at least in GCC 7.5.0) and turns my 16M file into a 52G copy.

What's the easiest way to copy a sparse file while preserving the sparsity?

0

There are 0 best solutions below