tarfile and end-of-tape

J

Josh Smith

In Python 2.3 there is a new library for handling tarfiles. However, there
doesn't seem to be any documentation on handling end-of-tape conditions. I've
googled for it and checked the docs, I've even looked into the modules
src and all I found was an end of file exception that might do what
I'm looking for, but might not.

Anyone have any pointers/help?

TIA

-jbs
 
L

Lars Gustaebel

In Python 2.3 there is a new library for handling tarfiles. However,
there doesn't seem to be any documentation on handling end-of-tape
conditions. I've googled for it and checked the docs, I've even looked
into the modules src and all I found was an end of file exception that
might do what I'm looking for, but might not.

Tape device support is implemented only rudimentarily in tarfile because
that is not its focus. End-of-tape conditions are not specially handled
except that you get the typical system errors if you try to write on a
full medium.
Please note that tarfile.open() takes an optional fileobj argument which
you could use to pass a custom file-like object that sits between tarfile
and your tape device.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top