Skip to content

Replace is not replacing file #149

Description

@jamesjessian

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions