Linux 上readdir 遍歷文件夾按文件名排序

遍歷文件夾發送數據,數據文件名按時間排序,使用readdir 遍歷時,沒有按照文件名排序。 2017-10-15-00-00-00 2017-10-15-01-00-00 2017-10-15-02-00-00node 最多見是readdir函數:git DIR *dir; struct dirent *ptr; dir = opendir(path.c_str()); if(NULL ==
相關文章
相關標籤/搜索