Re: [Tutor] monitor number of files in a folder

2009-08-10 Thread Jeff Younker
On Aug 7, 2009, at 9:29 AM, pedro wrote: On my machine (a Mac), os.listdir does include files that begin with "." Having the while loop timeout after 10 or 20 times through as was suggested a couple posts back will work fine for my particular situation. Thanks Yes, it does include files

Re: [Tutor] monitor number of files in a folder

2009-08-07 Thread pedro
On 2009-08-06 17:25:50 -0400, Νικόλαος Ράπτης said: Well, os.listdir doesn't include "." or ".." anyway as you can see here On my machine (a Mac), os.listdir does include files that begin with "." Having the while loop timeout after 10 or 20 times through as was suggested a couple posts bac

Re: [Tutor] monitor number of files in a folder

2009-08-06 Thread Νικόλαος Ράπτης
Well, os.listdir doesn't include "." or ".." anyway as you can see here So, just a simplelen(os.listdir(my_directory))will suffice.. A couple more points: -It's better looking and more readable (to me that means Pythonic) to store that

Re: [Tutor] monitor number of files in a folder

2009-08-06 Thread Dave Angel
Sander Sweers wrote: 2009/8/6 Dave Angel : You have to choose your poison. I prefer no poison. This is exactly what inotiy was made for and although I never used it there is a python module for it [1]. It would be great if you can post your experience with it. Greets Sander [1] http:

Re: [Tutor] monitor number of files in a folder

2009-08-06 Thread Sander Sweers
2009/8/6 Dave Angel : > > You have to choose your poison. I prefer no poison. This is exactly what inotiy was made for and although I never used it there is a python module for it [1]. It would be great if you can post your experience with it. Greets Sander [1] http://trac.dbzteam.org/pyinotify/

Re: [Tutor] monitor number of files in a folder

2009-08-06 Thread Dave Angel
pedro wrote: On 2009-08-06 15:49:35 -0400, Wayne said: On Thu, Aug 6, 2009 at 2:33 PM, pedro wrote: Hi I am rendering image sequences on a basic render farm that I am building. Once all the files in the sequence have been rendered I would like to make a quicktime of the sequence automat

Re: [Tutor] monitor number of files in a folder

2009-08-06 Thread pedro
On 2009-08-06 15:49:35 -0400, Wayne said: On Thu, Aug 6, 2009 at 2:33 PM, pedro wrote: Hi I am rendering image sequences on a basic render farm that I am building. Once all the files in the sequence have been rendered I would like to make a quicktime of the sequence automatically. The prob

Re: [Tutor] monitor number of files in a folder

2009-08-06 Thread pedro
On 2009-08-06 15:49:35 -0400, Wayne said: On Thu, Aug 6, 2009 at 2:33 PM, pedro wrote: Hi I am rendering image sequences on a basic render farm that I am building. Once all the files in the sequence have been rendered I would like to make a quicktime of the sequence automatically. The prob

Re: [Tutor] monitor number of files in a folder

2009-08-06 Thread Wayne
On Thu, Aug 6, 2009 at 2:33 PM, pedro wrote: > Hi I am rendering image sequences on a basic render farm that I am > building. Once all the files in the sequence have been rendered I would like > to make a quicktime of the sequence automatically. The problem I am having > is that if one of the com