Bugs item #1330039, was opened at 2005-10-18 22:27 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1330039&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.4 Status: Open Resolution: None Priority: 5 Submitted By: Martin Pitt (mpitt) Assigned to: Nobody/Anonymous (nobody) Summary: tarfile.add() produces hard links instead of normal files Initial Comment: When opening a tarfile for writing and adding several files, some files end up being a hardlink to a previously added tar member instead of being a proper file member. I attach a demo that demonstrates the problem. It basically does: tarfile.open('tarfile-bug.tar', 'w') tar.add('tarfile-bug-f1') tar.add('tarfile-bug-f2') tar.close() in the resulting tar, "tarfile-bug-f2" is a hard link to tarfile-bug-f1, although both entries should be proper files. It works when the tarfile is close()d and opened again in append mode between the two add()s, but that slows down the process dramatically and is certainly not the intended way. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1330039&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com