toResourcePath | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function toResourcePath

    Resolve a filesystem path back to a resource path

    Path to resolve

    Do not fail if the path cannot be matched to a filesystem path

    Return the original path if unmatched. Implies allowUnmatched

    WebHare resource path. A succesful return does not imply the path actually exists, null if the path cannot be mapped

    If the path cannot be mapped to a resource path and allowUnmatched is not set

    • Parameters

      • diskpath: string
      • options: { keepUnmatched: true }

      Returns string

    • Parameters

      • diskpath: string
      • options: { allowUnmatched: true }

      Returns null | string

    • Parameters

      • diskpath: string
      • Optionaloptions: { allowUnmatched?: boolean; keepUnmatched?: boolean }

      Returns string