[Jslib] Problem with run() in fileUtils.js

Pete Collins pete at mozdevgroup.com
Thu Feb 17 09:32:37 EST 2005


Please file a bug so I can look into it.

jslib:bugs

http://jslib.mozdev.org/bugs.html

Thanks

--pete

Michael Kaiser wrote:

> Hi All,
>
> I have a problem with run() on Mac OS 10.3.8
> I always get NS_ERROR_INVALID_ARG
> this happens at
>      if (!fileInst.isExecutable())          return 
> jslibErrorMsg("NS_ERROR_INVALID_ARG");
>
>
> So i tried it with xpcshell
>
> js> var pp = 
> "/Applications/MozillaDebug.app/Contents/MacOS/chrome/jslib/jslib.js";
> js> load(pp);
> include: chrome://jslib/content/debug/debug.js
> include: chrome://jslib/content/modules.js
> js> include(jslib_fileutils);
> include: chrome://jslib/content/io/fileUtils.js
> 0
> js> var fileInst = new 
> JS_FILEUTILS_FilePath("/Applications/MozillaDebug.app/Contents/MacOS/mozilla"); 
>
> js> fileInst.isExecutable();
> false
>
> mozilla is definitely executable... :-)
>
> Thanks,
> Michi
>
> Mac OS 10.3.8
> jslib Build Date  Feb 15, 2005
> Mozilla 1.7.5
>

-- 
Pete Collins - Founder, Mozdev Group Inc.
www.mozdevgroup.com
Mozilla Software Development Solutions 




More information about the Jslib mailing list