I\'m beginner in Python and I\'m wondering to know how can I add a condition in this code to read only all new files of .../data/ directory (for example from 24 hou
for filename in glob.glob(os.path.join(path, '*.xml')):
if os.path.getmtime(filename) < time.time() - 24 * 60 * 60: # 24h ago
continue # skip the old file
...