Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

output file dir same to compress dir #75

Closed
pingkui opened this issue Jul 26, 2018 · 3 comments
Closed

output file dir same to compress dir #75

pingkui opened this issue Jul 26, 2018 · 3 comments
Assignees

Comments

@pingkui
Copy link

pingkui commented Jul 26, 2018

I want to compress all the file the current directory, output to the current directory; the result is that untar the tar file, it contains a tar file that has a same tar-filename.

@johnarok johnarok self-assigned this Aug 25, 2018
@johnarok
Copy link
Contributor

Hey! could you provide an example/steps to reproduce with what you expect to happen vs current situation.. refer this one for an example #22 (comment)

@weingart
Copy link
Contributor

Unfortunately, I'm not particularly enthusiastic about supporting this use case. Reliably identifying the file you're archiving as being the same file you're writing to currently is usually hard to get right across all platforms.

A more reliable method is to ensure that the tar file you're creating is outside the directory tree you are archiving, and then moving the tar file into the final location. Is this an acceptable solution?

@johnarok
Copy link
Contributor

johnarok commented Sep 7, 2018

Closing as there is no activity and there exists an alternate solution from @weingart

@johnarok johnarok closed this as completed Sep 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants