Size of files in human, readable form

Tony J Ibbs (Tibs) tony at lsl.co.uk
Tue Dec 21 07:09:30 EST 1999


Tim Muddletin came up with the "modern" Python solution. Attached is a small
utility (written back when Python was at 1.3, so not quite as sophisticated
in the way it gets the file size) that wraps the same concept up *as* a
utility. It takes a filename (reports on its size) or a number of
bytes/megabytes/etc (converts it). If you don't give any arguments, it
explains this...

--
Tony J Ibbs (Tibs)      http://www.tibsnjoan.demon.co.uk/
'Tim happens. Get used to it'. (David Ascher, on the Doc-SIG)
My views! Mine! Mine! (Unless Laser-Scan ask nicely to borrow them.)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mb
Type: application/octet-stream
Size: 2615 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/19991221/8d822cc8/attachment.obj>


More information about the Python-list mailing list