Reputation: 10944
I know there are file comparison tools out there to determine whether files were added, deleted, or modified when comparing between two folders. However, I'm wondering how you would approach reading the file properties programmatically to see when the file is created/modified/accessed (like how you can find these information by viewing the file properties in a file explorere). Thanks in advance for your input.
Upvotes: 2
Views: 2374
Reputation: 46070
On Windows you call FindFirstFile() WinAPI function. On Linux it's stat/fstat.
Upvotes: 1
Reputation: 5651
use the file info class of my current library of choice, for example: QFileInfo
Upvotes: 1