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

file_info on Window does not support symbol link #232

Open
da-liii opened this issue Sep 3, 2023 · 4 comments
Open

file_info on Window does not support symbol link #232

da-liii opened this issue Sep 3, 2023 · 4 comments

Comments

@da-liii
Copy link
Contributor

da-liii commented Sep 3, 2023

Describe the bug

Here is the todo code: https://github.com/tboox/tbox/blob/master/src/tbox/platform/windows/file.c#L410-L411

Expected behavior

Symbol Link should be deteced

Error output

None

Related Environment

Windows

Additional context

Here is the usage of file_info: XmacsLabs/lolly#115

@waruqi
Copy link
Member

waruqi commented Sep 4, 2023

暂时还没时间和环境测试和支持,你可以直接提个 pr 过来支持上。看 gpt 说的,似乎只需要判断下 FILE_ATTRIBUTE_REPARSE_POINT 就行了,你可以直接测试下

        if (fileAttributes.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT)

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


There is no time and environment for testing and support yet, you can directly submit a pr to support it. According to what gpt said, it seems that you only need to judge FILE_ATTRIBUTE_REPARSE_POINT, you can test it directly

        if (fileAttributes.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT)

@da-liii
Copy link
Contributor Author

da-liii commented Sep 4, 2023

嗯嗯 这个我来提pr

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Hmm, I'm here to mention PR

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

3 participants