How to check if a file is the same file as before
<p>I need to check if a file that existed in a directory on the server is the same file that was there say 5 minutes ago?</p>

<p>On a specific directory, I'm deleting and recreating a file with the same name every few minutes. A script is to access the file say every 2 mins. So at time t, the script checks the file and do stuffs. Then at time t+1, the file is deleted and recreated (same name but maybe different content). Then at time t+2, the script again looks for the file.</p>

<p>So in the second check , is there a way to check whether the file has been changed or not (without having to read the content)??</p>
