Size File

Neotaku neotaku at free.fr
Wed Apr 11 10:35:12 EDT 2001


    Sorry i've just find the answer
    i tell if somebady want to know

from stat import *
print os.stat('myfile')[ST_SIZE]

    ^_^

"Neotaku" <neotaku at free.fr> a écrit dans le message news:
3OZA6.65$Iz.215152 at nnrp6.proxad.net...
> Hello,
>
> Does anybody know how to have the file size (in Ko for exemple) ?
>
> Thanks a lot
> See ya
>
>




More information about the Python-list mailing list