Returns the file earliest last-modified time.
(self)
| 195 | return fname |
| 196 | |
| 197 | def getOldest(self): |
| 198 | """ |
| 199 | Returns the file earliest last-modified time. |
| 200 | """ |
| 201 | flist_copy = [] |
| 202 | try: |
| 203 | flist_copy = zip(map(os.path.getmtime, self), self) |
| 204 | except TypeError: |
| 205 | # there may be lists of lists |
| 206 | temp = self._unwind() |
| 207 | flist_copy = zip(map(os.path.getmtime, temp), temp) |
| 208 | flist_copy.sort() |
| 209 | try: |
| 210 | time, fname = flist_copy[0] |
| 211 | except IndexError: |
| 212 | # probably an empty list |
| 213 | return None |
| 214 | return fname |
| 215 | |
| 216 | def getNewest(self): |
| 217 | """ |