Directory Information

Hello,

I am wondering how I would go about finding out the last modification date of a directory on a linux system. I use the Qt Libraries with c++. Qt allows me to find out the complete file information for a specific file (size, type, date, etc...) it does not have the functionality to do this with directories. Is there a way to find out information such as size and date of a specific directory utilizing the c++ standard libraries?

Thank you in advance.
Use the Boost Filesystem library.

http://www.boost.org/doc/libs/1_31_0/libs/filesystem/doc/operations.htm#last_write_time

Or just use the stat function.

Topic archived. No new replies allowed.