This program uses the os.walk()
function to iterate through all files and directories in the specified root directory. For each file, it uses the os.path.getmtime()
function to get the modification time, and compares it to the specified date using a simple if
statement. If the modification time is later than the specified date, the full path of the file is printed. os module provides a portable way of using operating system dependent functionality
Here is an example Python program that gets all the files with their full paths that were modified after a specific date:
os.path.getmtime(path): Cross-platform way to get file modification time in Python. It returns the timestamp of when the file was last modified.
os.path.getctime(‘file_path’): To get file creation time but only on windows.
os.stat(path).st_birthtime: To get file creation time on Mac and some Unix based systems.