copy-file now truncates output after writing