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

Explicit Directory Inclusion in .tar File Creation #775

Open
SuperJMN opened this issue Oct 27, 2023 · 3 comments
Open

Explicit Directory Inclusion in .tar File Creation #775

SuperJMN opened this issue Oct 27, 2023 · 3 comments

Comments

@SuperJMN
Copy link

Hello!

I'm using your library to create .tar files (as part of the creaton of a .deb package), and I've encountered an issue regarding its structure. Based on my experience and research, it appears to be important to include directories explicitly in the file list when creating a .tar file for a .deb package.

When manually unpacking the archive using tar, the program can create the necessary directories based on the structure of the file list. However, some systems or utilities, like dpkg on Debian-based systems, are stricter regarding the package structure and require directories to be explicitly listed in the file list.

The problem I faced was that the library I'm using does not support explicitly including directories in the file list, resulting in unexpected behavior when I attempted to use the generated .tar files with dpkg.

It would be greatly appreciated if your library could add support for explicitly including directories in the file list when creating .tar files. This would help ensure compatibility with tools and systems that require this structure.

If possible, you might consider an additional option in your library that allows users to specify whether they want to include directories explicitly in the file list when creating the .tar file.

Thank you for your attention to this issue and for considering this suggestion to enhance your library's functionality.

@adamhathcock
Copy link
Owner

A common ask. I avoided directories because I thought it was annoying!

@SuperJMN
Copy link
Author

Oh, I see. I understand your decision. It's useful for just a few user case. Unfortunately, it seems that it's mandatory for creating .deb files. My new project is exactly for that.

Is there any easy workaround to create the entries with the current code?
Thanks a lot.

@adamhathcock
Copy link
Owner

The Tar implementation currently doesn't create directories so that would have to be added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants