This repository has been archived by the owner on Sep 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Fix MacOS folder icon handling. Fixes #12789 #12807
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If you change instead |
@ficristo Sadly I tried it with
But the regexp doesn't catch it for some reason (tried it with the If you have any ideas on how to get it working, I'd totally be into changing the check to that 👍 |
With one slash does it work? |
Agh, of course the |
Signed-off-by: petetnt <pete.a.nykanen@gmail.com>
petetnt
force-pushed
the
petetnt/fix-macos-folder-icon-handling
branch
from
September 29, 2016 19:47
21773e5
to
0c3b286
Compare
ficristo
approved these changes
Sep 29, 2016
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.
If it works, LGTM
This was referenced Oct 11, 2016
Closed
Thank's but how I execute this command? |
Closed
This was referenced Aug 30, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR handles an rare edge case where MacOS folder icon breaks down the whole FileTreeView. For repro steps see #12789
Background from superuser.com:
This PR checks for the existence of an file called
Icon\r
, and bails out of rendering the saidfileNode
if it's name matches it. This is relatively safe, because you shouldn't be able to create filenames with such special characters yourself.There's an side effect of failing to create a file called "Icon" if
Icon\r
already exists in the same folder, but the behaviour matches MacOS Finder, which also fails (silently).The PR includes adds
Icon\r
to the default exclusion list