Hi,
I am noticing that I cannot replace a file in a tar using tar.replace or tar.update; instead the file to be updated/replaced is simply appended again.
const archivePath = 'test.tar'
const fileName = 'test.jpg'
tar.c({ file: archivePath }, [fileName])
.then(_ => tar.r({ file: archivePath }, [fileName]))
.then(_ => tar.r({ file: archivePath }, [fileName]))
If I open up the tar file in 7zip the file is in there three times. Am I missing something?
tar@4.0.2
Windows 10
Node 6.11.4
Thanks
Hi,
I am noticing that I cannot replace a file in a tar using
tar.replaceortar.update; instead the file to be updated/replaced is simply appended again.If I open up the tar file in 7zip the file is in there three times. Am I missing something?
tar@4.0.2
Windows 10
Node 6.11.4
Thanks