Unit 'URIParser' Package
[Overview][Types][Procedures and functions][Index] [#fcl]

FilenameToURI

Construct a URI from a filename.

Declaration

Source position: uriparser.pp line 52

function FilenameToURI(

  const Filename: string;

  Encode: Boolean = True

):string;

Arguments

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

URIToFilename

  

Convert a URI to a filename.


Documentation generated on: Nov 22 2024