Re: Calling a definition

2006-10-19 Thread elake
Thanks for all of the help guys. I am still new to Python so this is part of the learning curve I guess. I will look at the glob module and see if that will do what I need to better. On Oct 19, 3:34 pm, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > At Thursday 19/10/2006 15:43, el

Calling a definition

2006-10-19 Thread elake
I have a piece of code that I need some help with. It is supposed (in my mind at least) take two arguments, a start path and a file extension. Then when called it should return each of the file paths that are found matching the criteria. It is only returning the first file that it finds. What am I

Re: Determining if a file is locked in Windows

2006-10-19 Thread elake
MatthewWarren wrote: > elake wrote: > > Larry Bates wrote: > > > elake wrote: > > > > I found this thread about a pst file in Windows being locked and I am > > > > having the same issue. > > > > > > > > > > http://groups

Re: Determining if a file is locked in Windows

2006-10-19 Thread elake
Larry Bates wrote: > elake wrote: > > I found this thread about a pst file in Windows being locked and I am > > having the same issue. > > > > http://groups.google.com/group/comp.lang.python/browse_thread/thread/d3dee5550b6d3652/ed00977acf62484f?lnk=gst&q=%2

Re: Flushing standard input

2006-10-18 Thread elake
I found this. http://mail.python.org/pipermail/python-list/2006-September/359296.html You cannot flush input. The flush method only relates to output. The *other* side of the file has to flush *its* output in order for you to see it as input. -- http://mail.python.org/mailman/listinfo/python-l

Determining if a file is locked in Windows

2006-10-18 Thread elake
I found this thread about a pst file in Windows being locked and I am having the same issue. http://groups.google.com/group/comp.lang.python/browse_thread/thread/d3dee5550b6d3652/ed00977acf62484f?lnk=gst&q=%27copying+locked+files%27&rnum=1 The problem is that I have a script that can find the pst

Re: Log rolling question

2005-10-25 Thread elake
Is there a way to do this for a whole calendar month? -- http://mail.python.org/mailman/listinfo/python-list

Log rolling question

2005-10-25 Thread elake
I have an application that creates a lot of large log files. I only want to keep logs for the previous 4 months. I am looking for a way to list the contents of the log dir and if the create date on the log is older than 4 months delete it. I have looked at the os.stat() function to get the created