When you do an os.Stat() on a directory, and call the ModTime() function, what does that time.Time mean? Does it mean the last time the directory in itself was changed (moved/renamed/…) or does it mean the last time ANY file in that folder was edited (moved/renamed/content changed/…)? I have tried to find the documentation for this, but I could not find it…
The latter is what I need, but if the first is how it works, then do I really have to loop through all files and subfolders to find out the last time a file was edited? Or is there a better way to get the information I need?
What the value means exactly depends on the filesystem and it’s drivers and settings. I usually deactivate adate and mdate on most of my partitions for performance reasons.
Most likely Ext4 (I have several drives though), but I have decided to go with the recursive solution. There will not be a lot of files in these directories anyway.