sjbarag / brs

An interpreter for the BrightScript language that runs on non-Roku platforms.
MIT License
113 stars 43 forks source link

fix(stdlib): URIs with pkg protocol are scoped to project dir #493

Closed lkipke closed 4 years ago

lkipke commented 4 years ago

Change Summary

Currently, if you use a global file function on a "pkg:/" uri, we are not prepending the URI with the project root directory. This means that if you used ListDir("pkg:/"), you would actually get all the files in the user's / directory, not the project directory. This PR fixes that.