Function decodeUriPathComponents

  • This function is used when converting a URI to a file path. Decodes all components of a URI path, with the exception of encoded slash characters, as this would lead to unexpected file locations being targeted (resulting in erroneous behaviour of the file based backend). Characters that would result in an illegal file path remain percent encoded.

    Parameters

    • path: string

      The path to decode the URI path components of.

    Returns string

    A decoded copy of the provided URI path (ignoring encoded slash characters).