Function Resource.takeOverPath
Sets the path of the resource, potentially overriding an existing cache entry for this path. This differs from setting resourcePath
, as the latter would error out if another resource was already cached for the given path.