AsherGlick / ResourceCalculator

A Video Game Resource Calculator
https://resourcecalculator.com
GNU General Public License v3.0
56 stars 30 forks source link

Tracking when files are copied/moved not just updated #91

Open AsherGlick opened 1 year ago

AsherGlick commented 1 year ago

If a file is moved into a folder then the current cache invalidation detection wont see it if its modified time is not updated as well. This adds a check on mtime (modified) as well as ctime (change) to see if either of these values are newer then the current cached files.

AsherGlick commented 1 year ago

@vreelb to see if this works on windows as well.

vreelb commented 1 year ago

Unfortunately it does not appear to work on Windows. image image

vreelb commented 1 year ago

FWIW it is still likely useful to merge this if it solves this on Linux, as Windows is no worse off with this change than before.

AsherGlick commented 1 year ago

That's unfortunate to hear. Some research into the windows file APIs make it seem like this is impossible on windows because that type of data is not tracked by the OS. I wonder how other systems handle it.