Function toResourcePath
Parameters
- diskpath: string
- options: { keepUnmatched: true }
Returns string
Parameters
- diskpath: string
- options: { allowUnmatched: true }
Returns null | string
- toResourcePath(
diskpath: string,
options?: { allowUnmatched?: boolean; keepUnmatched?: boolean },
): stringParameters
- diskpath: string
Optional
options: { allowUnmatched?: boolean; keepUnmatched?: boolean }
Returns string
Resolve a filesystem path back to a resource path
Param: diskpath
Path to resolve
Param: allowUnmatched
Do not fail if the path cannot be matched to a filesystem path
Param: keepUnmatched
Return the original path if unmatched. Implies allowUnmatched
Returns
WebHare resource path. A succesful return does not imply the path actually exists, null if the path cannot be mapped
Throws
If the path cannot be mapped to a resource path and allowUnmatched is not set