Closed Bug 15709 Opened 27 years ago Closed 27 years ago

[PP] GetFolder: Path returned is missing "/" at the end

Categories

(Core Graveyard :: Installer: XPInstall Engine, defect, P3)

Other
Linux
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: jimmykenlee, Assigned: dougt)

References

Details

Build: 10/6/99 SeaMonkey build 1. From http://jimbob/trigger2.html, trigger http://jimbob/jars/a_fileop_dircreate.xpi Install.StartInstall("Acceptance: a_fileop_dircreate", "acceptance", "1.1.1.1", 0); f = Install.GetFolder("Program"); Install.LogComment("GetFolder returns = " + f); Install.LogComment("Directory to create = " + f + "a_fileop_dircreate"); err = Install.DirCreate(f + "a_fileop_dircreate"); Install.LogComment("DirCreate returns = " + err); RESULT: The wrong directory is created. The Install.log shows the following: --------------------------------------------------------------------------- http://jimbob/jars/a_fileop_dircreate.xpi -- 10/06/1999 13:47:37 --------------------------------------------------------------------------- Acceptance: a_fileop_dircreate ------------------------------ ** GetFolder returns = /u/jimmylee/linux60/oct_06/package ** Directory to create = /u/jimmylee/linux60/oct_06/packagea_fileop_dircreate ** DirCreate returns = 0 Item [1/1] Create Folder: /u/jimmylee/linux60/oct_06/packagea_fileop_dircreate Install completed successfully Finished Installation 10/06/1999 13:47:38 EXPECTED RESULT: GetFolder should return the path with the "/" at the end similar to: /u/jimmylee/linux60/oct_06/package/
Assignee: cathleen → dougt
Target Milestone: M11
Doug, can you help take a look at this bug? :-)
Status: NEW → ASSIGNED
the real problem is people depending strings returned from GetFolder(). We have to check to see if the node being return from GetFolder() is a directory, and if so, insure that there is a seperator. Take a look at the output of http://jimbob/jars/f_getfolder_paths.xpi to see the inconsistancies of GetFolder()
Status: ASSIGNED → RESOLVED
Closed: 27 years ago
Resolution: --- → FIXED
Fix checked in.
Blocks: 16654
Status: RESOLVED → VERIFIED
Build 1999-10-22-08-M11(LINUX) Yessssssss!
*** Bug 15285 has been marked as a duplicate of this bug. ***
Bulk move of XPInstall (component to be deleted) bugs to Installer: XPInstall Engine
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.