Forcing tar to create an empty archive
Posted
by snostorm
on Super User
See other posts from Super User
or by snostorm
Published on 2010-04-21T01:53:13Z
Indexed on
2010/04/21
1:54 UTC
Read the original article
Hit count: 298
I'm trying to use tar to tar files before transfer, so I can keep the entire file path rather than losing it along the way. However, when I try to tar an empty folder, it tells me that it is cowardly refusing to create an empty archive. I want to keep the empty folder on the other end, but don't want to put anything else into the archive to make it non-empty. Is there any way to do this?
© Super User or respective owner