Closed
Bug 51932
Opened 24 years ago
Closed 24 years ago
Can't get an FSSpec from nsLocalFileMac for a file that does not exist
Categories
(Core :: XPCOM, defect, P3)
Tracking
()
RESOLVED
FIXED
People
(Reporter: sfraser_bugs, Assigned: ccarlen)
References
Details
(Whiteboard: [rtm-])
Attachments
(1 file)
1.20 KB,
patch
|
Details | Diff | Splinter Review |
When saving a file in Composer, we get back an nsILocalFile which points to the location where the file is to be saved. But I can't get an FSSpec out of the nsLocalFileMac, because the various getters all return an error. They do so because the ResolveAndStat() call fails (file not found). I think the FSSpec getters need to be smarter in this case.
Assignee | ||
Updated•24 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•24 years ago
|
||
Looking at it - the getters should return a vaild spec if the leaf does not exist.
Assignee | ||
Comment 3•24 years ago
|
||
Will work on it until resolved.
Assignee | ||
Comment 4•24 years ago
|
||
Reporter | ||
Comment 5•24 years ago
|
||
Patch looks good, r=sfraser.
Comment 7•24 years ago
|
||
PDT marking [rtm-] because the downside of not fixing doesn't sound like P1
Whiteboard: [rtm+] → [rtm-]
Reporter | ||
Comment 8•24 years ago
|
||
Conrad, can you check this in? Or is it in already?
Assignee | ||
Comment 9•24 years ago
|
||
If not, I'll check it in today.
Assignee | ||
Comment 10•24 years ago
|
||
Fix checked in. Works if the file in question is the leaf. In other words, its parent must exist.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•