How can I find out the size of a file

Marko.Cain.23 at gmail.com Marko.Cain.23 at gmail.com
Wed Mar 28 18:09:08 EDT 2007


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.




More information about the Python-list mailing list