tbox icon indicating copy to clipboard operation
tbox copied to clipboard

file_info on Window does not support symbol link

Open da-liii opened this issue 1 year ago • 4 comments

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: https://github.com/XmacsLabs/lolly/pull/115

da-liii avatar Sep 03 '23 17:09 da-liii

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

        if (fileAttributes.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT)

waruqi avatar Sep 04 '23 02:09 waruqi

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)

Issues-translate-bot avatar Sep 04 '23 02:09 Issues-translate-bot

嗯嗯 这个我来提pr

da-liii avatar Sep 04 '23 04:09 da-liii

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


Hmm, I'm here to mention PR

Issues-translate-bot avatar Sep 04 '23 04:09 Issues-translate-bot