如何按照创建文件的先后顺序遍历文件系统?
Opened this issue · 1 comments
chengshuihang commented
fx_directory_first_full_entry_find fx_directory_next_full_entry_find fx_file_create fx_file_open是不是互相有影响?
我使用fx_file_create创建文件,使用fx_file_open只写方式打开文件,fx_file_truncate_release将文件截断为0,然后写入数据到文件中,最后调用fx_file_close关闭文件。另外一边我使用fx_directory_first_full_entry_find和fx_directory_next_full_entry_find寻找第一个创建的文件,然后调用fx_file_open只读打开文件,读取数据到内存,处理读取到的数据,然后fx_file_delete删除文件。我发现找到的文件并不是写入的文件顺序,如果将文件创建好,然后调用fx_directory_first_full_entry_find和fx_directory_next_full_entry_find遍历,得到的文件顺序是正确,我该如何处理才能得到想要的结果,filex版本是6.2.0
chengshuihang commented