Skip to content Skip to sidebar Skip to footer

File Modification And Creation

How would you scan a dir for a text file and read the text file by date modified, print it to screen having the script scan the directory every 5 seconds for a newer file creadted

Solution 1:

os.stat will tell you the modification time


Post a Comment for "File Modification And Creation"