Im writing script that creates list of all files and folders, and when next time it runs, i wanted to check if folder is modified since last time, and if not, exclude folder from reading this time,
I use filemtime(), and stat() function,
It works, when i add new files in subfolders date is changing, but if i edit file in folder, folder last modified date id not changing, using these functions.
Is there a way how to check if files in folder have been edited, without going through all files one by one??
this script will run very often, so i dont want so it goes through all files and folders every time,(in some folders there is a lot of files)