Labs/Jetpack/JEP/28: Difference between revisions

Jump to navigation Jump to search
added url.fromFilename() docs
(added draft template)
(added url.fromFilename() docs)
Line 242: Line 242:


Attempts to convert the given URL to a native file path.  This function will automatically attempt to resolve non-file protocols, such as the <tt>resource:</tt> protocol, to their place on the file system. An exception is raised if the URL can't be converted; otherwise, the native file path is returned as a string.
Attempts to convert the given URL to a native file path.  This function will automatically attempt to resolve non-file protocols, such as the <tt>resource:</tt> protocol, to their place on the file system. An exception is raised if the URL can't be converted; otherwise, the native file path is returned as a string.
<tt>url.'''fromFilename'''(''path'')</tt>
Converts the given native file path to a <tt>file:</tt> URL.


<tt>url.'''resolve'''(''base'', ''relative'')</tt>
<tt>url.'''resolve'''(''base'', ''relative'')</tt>
874

edits

Navigation menu