Skip to content

Provide a way of getting packageRoot as a Uri #19430

@johnniwinther

Description

@johnniwinther

Platform.packageRoot should return a Uri.

Currently is is passed on verbatim from the system, and even though the package root always refers to a directory-like resource every user must ensure that it is normalized before handling.

For instance, you cannot use

Uri packageRoot = Uri.base.resolve(Platform.packageRoot);

because it might be missing a trailing slash and might contain ''.

Metadata

Metadata

Assignees

Labels

area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.library-iotype-enhancementA request for a change that isn't a bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions