Directory dependencies use the max mtime of all directories in a directory tree to determine if a directory has been modified or not, but this method is not resilient against clock changes and may behave improperly if the cobble DB file used was restored from a cache.
A better alternative would be to use a hash of the (deterministic) directory tree listing which would detect changes in directory contents without the same issues that arise from using directory mtime.
Directory dependencies use the max mtime of all directories in a directory tree to determine if a directory has been modified or not, but this method is not resilient against clock changes and may behave improperly if the cobble DB file used was restored from a cache.
A better alternative would be to use a hash of the (deterministic) directory tree listing which would detect changes in directory contents without the same issues that arise from using directory mtime.