If we use a copy_expert here, we can avoid all kind of permission issues; moreover we can read from a file-like object, including a gzipped file.