Are you sure?  From the link you provided it looks as if:

*stat*( path) Perform a stat() system call on the given path. The return
value is an object whose attributes correspond to the members of the
statstructure, namely:
st_mode (protection bits), st_ino (inode number), st_dev (device),
st_nlink(number of hard links),
st_uid (user ID of owner), st_gid (group ID of owner), st_size (size of
file, in bytes), st_atime (time of most recent access), st_mtime (time of
most recent content modification), st_ctime (platform dependent; time of
most recent metadata change on Unix, or the time of creation on Windows):

>>> import os
>>> statinfo = os.stat('somefile.txt')
>>> statinfo
(33188, 422511L, 769L, 1, 1032, 100, 926L, 1105022698,1105022732, 1105022732)
>>> statinfo.st_size
926L
>>>


does exactly what you want.

On 10/2/07, Kamal <[EMAIL PROTECTED]> wrote:
>
> never mind found my answer here
>
> http://docs.python.org/lib/os-file-dir.html
>
>
> On 10/2/07, Kamal <[EMAIL PROTECTED]> wrote:
> >
> > would appreciate any pointers.
> >
> > --
> > Thanks,
> > Kamal
>
>
>
>
> --
> Thanks,
> Kamal
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to