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)

PowerPC
Mac System 8.5
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: sfraser_bugs, Assigned: ccarlen)

References

Details

(Whiteboard: [rtm-])

Attachments

(1 file)

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.
Blocks: 47553
Status: NEW → ASSIGNED
Looking at it - the getters should return a vaild spec if the leaf does not 

exist.

nominate for rtm, this is needed to resolve 47553
Keywords: rtm
Will work on it until resolved.

Patch looks good, r=sfraser.
+ing
Whiteboard: [rtm+]
PDT marking [rtm-] because the downside of not fixing doesn't sound like P1
Whiteboard: [rtm+] → [rtm-]
Conrad, can you check this in? Or is it in already?
If not, I'll check it in today.
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.

Attachment

General

Created:
Updated:
Size: