Closed Bug 45599 Opened 25 years ago Closed 25 years ago

nsLocalFile(Mac)::Create has problem

Categories

(Core :: XPCOM, defect, P3)

PowerPC
Mac System 9.x
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: conrad, Assigned: conrad)

Details

(Keywords: embed, platform-parity, Whiteboard: [nsbeta2+])

The Mac implementation of nsLocalFile::Create does not work if all ancestors of the file being created don't exist. I'll fix this one.
-> Conrad
Assignee: rayw → conrad
Keywords: embed, nsbeta2
Whiteboard: nsbeta2+
Keywords: pp
Whiteboard: nsbeta2+ → [nsbeta2+]
ResolvePathAndSpec() was resetting the dest spec if directories in the path did not exist. This was wrong in the case of a spec with a relative path. This made the relative path relative to nothing.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Would opening a local file on the Mac be a test case for this?
no. calling create() would be.
The test case is this: Given an nsILocalFile directory which does exist and was initially specified with an FSSpec, call AppendRelativePath more than once. These child directories do not exist. When Create is called in this case, it will fail.
conrad, please mark verified is all is well.
QA Contact: leger → conrad
OS: Mac System 9.x
You need to log in before you can comment on or make changes to this bug.