thanks all. this seemed to work:
import os
stat = os.stat(str(newFiles[index]))
size1 = stat.st_size
pygame.time.wait(100)
stat = os.stat(str(newFiles[index]))
size2 = stat.st_size
while
In article <[EMAIL PROTECTED]>,
Andrew Robert <[EMAIL PROTECTED]> wrote:
>[EMAIL PROTECTED] wrote:
>> hello --
>>
>> i'm running python/pygame on maemo (nokia 770). my situation is that
>> i'm continually scouring this one directory for incoming files. if i
>> see if there's a new file (coming in
thanks - i'm looking, but i found this as well. actually, does this
work?
import os
os.access(file, os.R_OK) # is it readable?
is this valid:
{ i have my file identified }
isFileAccessible = os.access(file, os.R_OK)
while !isFileAccessible:
isFileAccessible = os.access(file, os.R_OK)
and t
[EMAIL PROTECTED] wrote:
> hello --
>
> i'm running python/pygame on maemo (nokia 770). my situation is that
> i'm continually scouring this one directory for incoming files. if i
> see if there's a new file (coming in via wireless scp), i proceed to
> load it and process it.
>
> however, i think
hello --
i'm running python/pygame on maemo (nokia 770). my situation is that
i'm continually scouring this one directory for incoming files. if i
see if there's a new file (coming in via wireless scp), i proceed to
load it and process it.
however, i think i am running into the issue that my prog