-
Notifications
You must be signed in to change notification settings - Fork 23
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
alternative way of getting volume name on Mac OS X <10.7 #3
Conversation
This builds without warnings on 10.6, and mocha reports |
Forgot to say that I used |
desc = MYCFStringGetV8String(CFErrorCopyDescription(error)); | ||
#else | ||
CFStringRef errorString = CFSTR("Could not get volume name from FSRef."); | ||
desc = MYCFStringGetV8String(errorString); |
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.
desc = String::New("Could not get volume name from FSRef.")
?
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.
Well, yes.
Should I add a new commit to the branch or --amend
this one?
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.
--amend
would be preferred
I'll have a look at this later tonight, but it looks good |
kCFURLVolumeNameKey was introduced in 10.7.
Sorry, some things got in the way yesterday. I'll do it tonight. |
I wrote this into a separate file, with better error reporting, and added some tests. Could you please check out my master and test if it works okay. I'll add you as a contributor to the package.json if you want to. Name, email, url? |
Builds without warnings, passes 3
That would be nice, thanks! |
Yeah, I didn't really know what to do with the volume name. But that's great, I'll push a release to |
kCFURLVolumeNameKey was introduced in 10.7.