Most viewed recipes tagged "meta:requires=disk"http://code.activestate.com/recipes/tags/meta:requires=disk/views/2006-04-26T09:45:27-07:00ActiveState Code Recipesdal_1.py (Python)
2006-04-26T09:45:27-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/492209-dal_1py/
<p style="color: grey">
Python
recipe 492209
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/files/">files</a>).
</p>
<p>The class presented bellow (Disk Abstraction
Layer 1) is designed to provide a very easy
interface to work with secondary memory
where IO errors may occur and data is
worked with in blocks. DAL1 allows access
to a hard drive (via its driver) so that
it can be accessed in a file-like way.
IO errors are also taken care of at this
level (which can cause problems at extremely
high probabilities of failure.</p>