bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] new feature suggestion


From: Markus Kuhn
Subject: [Bug-tar] new feature suggestion
Date: Tue, 11 May 2004 21:56:39 +0100

Would it be possible to add to GNU tar a new option

  --max-cwd-additions=1

that aborts the extraction of an archive with an error message if this
extraction would create more than 1 file or subdirectory in the current
working directory (and may therefore create a mess that is difficult to
clean up)?

Reason: Each tar archive I get, I first have to check manually, whether
all files will already be unpacked under one single subdirectory in the
archive, or whether I have to first create a new subdirectory in which
to unpack the archive, to ensure that I can easily remove the just
unpacked files again with rm -rf. The above option would allow me to
easily make sure that tar warns me whenever I call it outside a separate
subdirectory created specifically for this extraction, if it is about to
litter a thousand files in the current working directory.

Just an idea ...

Thanks for your great work,

Markus

-- 
Markus Kuhn, Computer Laboratory, University of Cambridge
http://www.cl.cam.ac.uk/~mgk25/ || CB3 0FD, Great Britain





reply via email to

[Prev in Thread] Current Thread [Next in Thread]