Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tar files cannot store file names larger than 100 characters #30976

Closed
barcelona-messi opened this issue Mar 21, 2019 · 1 comment
Closed

Tar files cannot store file names larger than 100 characters #30976

barcelona-messi opened this issue Mar 21, 2019 · 1 comment

Comments

@barcelona-messi
Copy link

File names larger than 100 characters will be truncated when i use archive/tar , how can I save a file name larger than 100 characters in the tar?

@agnivade
Copy link
Contributor

You are probably using USTAR format. Please use PAX. https://golang.org/pkg/archive/tar/#Format.

If you still face the same issue with PAX. Please show us a complete code sample that we can run at our end to reproduce the issue, along with other details in the issue template with go version and go env, which you have skipped.

Thanks.

@golang golang locked and limited conversation to collaborators Mar 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants