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

    Function toFSPath

    Resolve a resource path to a filesystem 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

    Absolute file system path. A succesful return does not imply the path actually exists

    If the path cannot be mapped to a filesystem path

    • Parameters

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

      Returns string

    • Parameters

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

      Returns null | string

    • Parameters

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

      Returns string