-
Notifications
You must be signed in to change notification settings - Fork 113
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
[performance] IFile.create: reduce 1 of 3 store.fetchInfo() #1445
[performance] IFile.create: reduce 1 of 3 store.fetchInfo() #1445
Conversation
// under this location. | ||
message = NLS.bind(Messages.resources_existsLocalDifferentCase, | ||
IPath.fromOSString(store.toString()).removeLastSegments(1).append(name).toOSString()); | ||
throw new ResourceException(IResourceStatus.CASE_VARIANT_EXISTS, getFullPath(), message, null); |
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 the error is no longer thrown it should be removed from the messages file(s) as well.
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.
c46b47a
to
cdb68f5
Compare
rebased. expecting error for |
As expected error on windows only:
|
Assume the file does not exist (normal case) - otherwise implementation fails later during actual write. eclipse-platform#1443
cdb68f5
to
f779562
Compare
updated with fix for hidden files. |
if there are no objections i plan to merge tomorrow |
Similar remark as in #1446 (comment). |
Same reasoning as there: put a breakpoint in the catch clause and verify it never happens under normal conditions. It would only happen under the absurd conditions of:
|
Assume the file does not exist (normal case) - otherwise implementation fails later during actual write.
#1443