[Jslib] Re: jslib - fileUtils

Martin Kutschker dreckskerl@glump.at
Sat, 16 Mar 2002 17:40:35 +0100


Mike Potter wrote:
> I have done a bit of research on this this morning... Here's what I've 
> found:
> The function RDF.prototype._rdf_init = function(src, flags) is expecting 
> src to be a file:// URL.
> In windows, these URLs need to be of the form file:///c:/temp/bob.rdf 
> (note 3 /// before the c: ) however, on line 96 (about) of rdfFile.js we 
> have this:
> this._rdf_init("file://"+filename, aFlags); and filename is the path to 
> the file, like c:/temp/bob.rdf (in my files).
> This won't work under windows, so what I've done is added an extra / to 
> that function so it looks like this:
> this._rdf_init("file:///"+filename, aFlags);

This is odd, because it used to work in earlier releases, apparently til 
0.9.5.

Masi