I have the below files in a directory.
Directory: /home/user_name/files/
pytest.py
jobrun.log
First_new_2021-09-17.log
Last_new_2021-09-17.log
First_new_2021-09-16.log
Last_new_2021-09-16.log
My expected output is to list only those files which have new and the date should be matching the current date.
Expected output:
First_new_2021-09-17.log
Last_new_2021-09-17.log
How to achieve this in python.
glob().