FilenameToURI¶
Construct a URI from a filename.
Declaration¶
Source position: uriparser.pp line 61
function FilenameToURI(const Filename: string; Encode: Boolean=True)
: string;
Arguments¶
| Name | Description |
|---|---|
| Filename | Filename to construct URI from. |
| Encode | True if invalid Path characters in FileName are encoded (escaped) in the URI. |
Function result¶
file: protocol URI.
Description¶
FilenameToURI takes Filename and constructs a file: protocol URI from it.
Errors¶
None.
See also¶
| Name | Description |
|---|---|
| URIToFilename | Convert a URI to a filename. |