python-sparsefile provides support for sparse files -- that is, files which contain blocks which have no space allocated for them on disk. Functions are provided to test if a file is sparse, and to copy a file, preserving any holes in the file. (sparsefile.copyfile() can be used as a replacement for shutil.copyfile().)

Download the source here.

Tim Bell
Last modified: Mon Aug 7 12:27:30 EST 2000