You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While this is the correct way to check if a file is hidden on windows, I think we should also take into account the hiddenfiles parameter so we can allow custom file patterns (ex. __pycache__, obj) as we can do on Linux.
The text was updated successfully, but these errors were encountered:
Catalyn45
changed the title
Hidden files patterns for windows
Hidden file patterns for windows
Apr 8, 2024
I am not against the idea, but since there are now two criteria involved (hiddenfiles and FILE_ATTRIBUTE_HIDDEN), should a given file only need to satisfy one criteria to be considered hidden?
I think the natural answer here would be yes, and you can simply append the logic from os.go. If more complex behavior is required, then it may be possible to specify a special marker for the hiddenfiles option to indicate files with the hidden attribute set, but it's probably not worth considering at this point.
Hello,
I noticed on Windows that when checking if a file is hidden we directly check the file attributes and we ignore the
hiddenfiles
parameter.While this is the correct way to check if a file is hidden on windows, I think we should also take into account the
hiddenfiles
parameter so we can allow custom file patterns (ex.__pycache__
,obj
) as we can do on Linux.The text was updated successfully, but these errors were encountered: