How do I add empty directories to a tar archive? #612

Open
opened 2026-01-29 22:14:38 +00:00 by claunia · 1 comment
Owner

Originally created by @mrconter1 on GitHub (Feb 8, 2024).

Hello!

I am trying to tar a folder with empty folder inside but they doesn't seem to be added. Is it not possible to add empty folders/directories to a tar archive?

Originally created by @mrconter1 on GitHub (Feb 8, 2024). Hello! I am trying to tar a folder with empty folder inside but they doesn't seem to be added. Is it not possible to add empty folders/directories to a tar archive?
claunia added the bugup for grabs labels 2026-01-29 22:14:38 +00:00
Author
Owner

@adamhathcock commented on GitHub (Feb 8, 2024):

Possibly not. When I wrote things a while back, I considered empty directories a bug. I probably was wrong. Git also has this issue.

@adamhathcock commented on GitHub (Feb 8, 2024): Possibly not. When I wrote things a while back, I considered empty directories a bug. I probably was wrong. Git also has this issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#612