-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Finder] Issues with the x permission not set on sub-folder #6981
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
Comments
@vicb yep, i'll have time next week to implement that. |
Thanks ! |
Some more notes:
|
@vicb tell me if I understand you well:
On native finders, should an exception be thrown if flag is |
I would introduce:
|
This PR was merged into the master branch. Discussion ---------- [Finder] Adds AccessDeniedException | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | yes | Deprecations? | no | Tests pass? | yes | Fixed tickets | #6981 Commits ------- 714ace8 [finder] Introduced AccessDeniedException
re-oprening as not solved (ony exceptions have been added) |
The |
I think that's a bad name. You are not ignoring the exception (ie the result) but the root cause (ie the permission error). I don't have good any names in mind ((skip|ignore)UnreadableFolders maybe) |
This PR was merged into the master branch. Discussion ---------- [Finder] adds a way to ignore AccessDeniedException This PR adds a `Finder::ignoreUnreadableDirs()` method which tells `Finder` to ignore unreadable directories instead of throwing an `AccessDeniedException`. | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #6981 Commits ------- a63b30b [Finder] added Finder::ignoreUnreadableDirs() method
Closing as the remaining point was fixed in #7518 |
When a sub-folder does not have the x bit set:
UnexpectedValueException
, quite misleading,I have discussed with @fabpot about this issue, the best would be to have a method to ignore such folders (the flag would be off by default, ie legacy behavior)
/cc @jfsimon would you have some bw to look at this ?
The text was updated successfully, but these errors were encountered: