Closed
Bug 16123
Opened 25 years ago
Closed 25 years ago
File op: fileGetSize does not return error for non-existant file
Categories
(Core Graveyard :: Installer: XPInstall Engine, defect, P3)
Tracking
(Not tracked)
VERIFIED
INVALID
People
(Reporter: jimmykenlee, Assigned: ssu0262)
Details
Build: 10/11/99 SeaMonkey build 1. From http://jimbob/trigger2.html, trigger http://jimbob/jars/f_fileop_filegetsize_zero startInstall("Functional : f_fileop_filegetsize_zero", "f_fileop_filegetsize_zero", "1.1.1.1", 0); f = getFolder("Program"); addFile("fileop_filegetsize_zero", "2.2.2.2", jarSrc, f, jarSrc); fileSource = f + "zero1.tmp"; fileSource2 = f + "nonexisting.txt"; theSize = fileGetSize(fileSource); theSize2 = fileGetSize(fileSource2); logComment("Path to known file = " + fileSource); logComment("Path to nonexisting file = " + fileSource2); logComment("fileGetSize should return 0 bytes = " + theSize); logComment("fileGetSize returns for nonexisting file = " + theSize2); RESULT: A value of zero is returned for checking the file size on a non-existant file. The Install.log shows the following: --------------------------------------------------------------------------- http://jimbob/jars/f_fileop_filegetsize_zero.xpi -- 10/11/1999 13:56:04 --------------------------------------------------------------------------- Functional : f_fileop_filegetsize_zero -------------------------------------- ** Path to known file = C:\Program Files\moz106\x86rel\zero1.tmp ** Path to nonexisting file = C:\Program Files\moz106\x86rel\nonexisting.txt ** fileGetSize should return 0 bytes = 0 ** fileGetSize returns for nonexisting file = 0 Item [1/1] Installing: C:\Program Files\moz106\x86rel\zero1.tmp Install completed successfully Finished Installation 10/11/1999 13:56:05 EXPECTED RESULT: An error message -214 (FILE_DOES_NOT_EXIST)
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
I talked to Dan. He said that this is as designed. The user can use the install.fileExists() function to see if the file exists or not. Marking this as Invalid.
Bulk move of XPInstall (component to be deleted) bugs to Installer: XPInstall Engine
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•