-
Notifications
You must be signed in to change notification settings - Fork 6
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
fix(list_dir): check permissions and consider workspace filters config #2279
Conversation
child.is_dir() | ||
and not is_study_folder(child) | ||
and not should_ignore_folder_for_scan(child) | ||
and not child.name.startswith((".", "$")) |
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.
the name check for hidden file doesn't work on windows, does it?
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.
I removed this code to use the workspace filters to mutualize the code
.*
and $*
folders
antarest/study/storage/utils.py
Outdated
return False | ||
return not ( | ||
path.is_dir() | ||
and any([re.search(regex, path.name) for regex in filter_in]) |
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.
do you need to use a list here instead of just the generator ? like this any(re.search(regex, path.name) for regex in filter_in)
Will fix back-end issues inside [ANT-615]