C++:boost file system to return a list of files older than a specific time

后端 未结 2 1941
萌比男神i
萌比男神i 2021-01-11 19:03

I am using the Boost::FileSystem library with C++ running under Linux platform and I have a question following:

I would like to have a list of files whi

2条回答
  •  一整个雨季
    2021-01-11 19:43

    You can use a std::map(last_write_time, fileName) to store the file last modified time and the absolute file path and the do an in-order traversal to sort the data.

提交回复
热议问题