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://mail.python.org/mailman/listinfo/python-list

Reply via email to