windowscachingcopyfilesystemsdrive

Is there something that caches deleted files for a period of time on the drive?


I am having problems determining the creation time of a file.

When I copy a file from one folder to another and delete the original file, the copy gets a new created date. If I copy the copy back to the original path, the new copy, which is now back in the original path, gets the old creation date from before the deletion.

Example:

Windows specs:

I guess something is stored in the cache. How can I stop this behaviour?

I was expecting the file to get a new creation date because it has been deleted.


Solution

  • It's not exactly the cache of files, but yes, the filesystem does keep the information about the deleted files for some time (about 15 seconds). The purpose is to restore the old creation date when a file gets overwritten - this is exactly what you are experiencing. Here's an explanation with links: https://stackoverflow.com/a/8810634/47961