79345398

Date: 2025-01-10 10:41:59
Score: 0.5
Natty:
Report link

One liner to get the full path of the file:

max(map(lambda file: DIR_PATH / file, filter(lambda file: 'Your-nice-timestamped-pattern' in file, os.listdir(DIR_PATH))), key=os.path.getctime)

(Assuming DIR_PATH is a pathlib Path object and you want the file that was created last)

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: G-Higgins