Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何按照创建文件的先后顺序遍历文件系统? #9

Open
chengshuihang opened this issue Dec 3, 2022 · 1 comment
Open
Assignees

Comments

@chengshuihang
Copy link

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
Copy link
Author

chengshuihang commented Dec 5, 2022

image
如图所示,红色框选是一组写入读取的过程,蓝色框选是接下来的一次写入读取过程,此时读取到的文件不是期望中的2022_12_05_11_38_38_02文件,而是2022_12_05_11_38_48_01文件,跳过了中间产生的文件。绿色的是中间产生的一些文件

@eclipsewebmaster eclipsewebmaster transferred this issue from another repository Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants