Function “encodeInetPath”

function encodeInetPath(path)

Encodes the given local path as an internet path

This function uses percent encoding to encode a path in the local file system in internet format, suitable to use in an URL.

Parameters

NameTypeDescription
pathstringThe path to convert

Return Value

Returns a string representing a path in internet format.