Re: finding the last file created in a directory

2006-06-30 Thread Tim Chase
> I have a repeatedly running process, which always creates a > new logfile with an ending n+1. What I need is to find the > last file, the one with highest number at the end. The problem > is, that the max() method gives me a wrong answer. I tried to > convert the items in my list into integers us

finding the last file created in a directory

2006-06-30 Thread Petr Man
Hello everyone, I have a repeatedly running process, which always creates a new logfile with an ending n+1. What I need is to find the last file, the one with highest number at the end. The problem is, that the max() method gives me a wrong answer. I tried to convert the items in my list into in