Hi,
How can I find out the size of a file in a disk in python?
i try this, but it does not work:
size = open(inputFileNameDir + / + file, 'r').size()
Thank for any help.
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
How can I find out the size of a file in a disk in python?
os.path.getsize(filename)
-Irmen
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 29, 6:09 am, [EMAIL PROTECTED] wrote:
Hi,
How can I find out the size of a file in a disk in python?
i try this, but it does not work:
size = open(inputFileNameDir + / + file, 'r').size()
Thank for any help.
os.stat(filename),
see stat manual for detail.(st_size )
--
http