-
Notifications
You must be signed in to change notification settings - Fork 329
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
Taking hidden files parameter into account in windows #1684
Taking hidden files parameter into account in windows #1684
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. The code itself looks OK, but could you please do the following:
- Update the documentation for the
hidden
option. - Check if the following linter comment is still relevant:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks once again for the changes.
Thank you @Catalyn45 for the patch and @joelim-work for the review. I like the idea of enabling the use of |
I don't think we have other options that have a different default value depending on the os right? Maybe making this the only one will be a bit inconsistent and misleading. Maybe a better alternative would be to put Alternatively we can create some |
@Catalyn45 Actually, we have |
Ah, I did not consider the default value of In that case, yes I agree with @gokcehan that this should be handled similarly to |
Applied the suggestion, tell me if there is something else I should change. |
fixes: #1683
On windows a file is considered hidden only if it has
FILE_ATTRIBUTE_HIDDEN
set. While this is the correct way to check if a file is hidden on windows, we should also take into account thehiddenfiles
option so we can allow custom file patterns (ex.__pycache__
,obj
) as we can do on Linux.