Skip to content
Snippets Groups Projects
Commit eb854c34 authored by rswindell's avatar rswindell
Browse files

Checking the file's "exists" property now does a case-insensitive/fixing

existence check on Unix (fexistcase).
parent 40f6dedc
No related branches found
No related tags found
No related merge requests found
......@@ -1186,7 +1186,7 @@ static JSBool js_file_get(JSContext *cx, JSObject *obj, jsval id, jsval *vp)
if(p->fp) /* open? */
*vp = JSVAL_TRUE;
else
*vp = BOOLEAN_TO_JSVAL(fexist(p->name));
*vp = BOOLEAN_TO_JSVAL(fexistcase(p->name));
break;
case FILE_PROP_DATE:
JS_NewNumberValue(cx,fdate(p->name),vp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment