开发者

Reading File tags/properties in c++

开发者 https://www.devze.com 2023-02-06 21:57 出处:网络
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

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.


use the file info class of my current library of choice, for example: QFileInfo


On Windows you call FindFirstFile() WinAPI function. On Linux it's stat/fstat.

0

精彩评论

暂无评论...
验证码 换一张
取 消