Can't get an FSSpec from nsLocalFileMac for a file that does not exist

RESOLVED FIXED

Status

()

Core
XPCOM
P3
normal
RESOLVED FIXED
18 years ago
17 years ago

People

(Reporter: Simon Fraser, Assigned: Conrad Carlen (not reading bugmail))

Tracking

Trunk
PowerPC
Mac System 8.5
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [rtm-])

Attachments

(1 attachment)

(Reporter)

Description

18 years ago
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.
(Reporter)

Updated

18 years ago
Blocks: 47553
(Assignee)

Updated

18 years ago
Status: NEW → ASSIGNED
(Assignee)

Comment 1

18 years ago
Looking at it - the getters should return a vaild spec if the leaf does not 

exist.

Comment 2

18 years ago
nominate for rtm, this is needed to resolve 47553
Keywords: rtm
(Assignee)

Comment 3

18 years ago
Will work on it until resolved.

(Assignee)

Comment 4

18 years ago
Created attachment 15085 [details] [diff] [review]
patch to allow getting spec of non-existing file
(Reporter)

Comment 5

18 years ago
Patch looks good, r=sfraser.

Comment 6

18 years ago
+ing
Whiteboard: [rtm+]

Comment 7

18 years ago
PDT marking [rtm-] because the downside of not fixing doesn't sound like P1
Whiteboard: [rtm+] → [rtm-]
(Reporter)

Comment 8

17 years ago
Conrad, can you check this in? Or is it in already?
(Assignee)

Comment 9

17 years ago
If not, I'll check it in today.
(Assignee)

Comment 10

17 years ago
Fix checked in. Works if the file in question is the leaf. In other words, its
parent must exist. 
Status: ASSIGNED → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.