Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assetFS.Prefix does not behave as expected #8

Open
khaos-one opened this issue Feb 20, 2015 · 0 comments
Open

assetFS.Prefix does not behave as expected #8

khaos-one opened this issue Feb 20, 2015 · 0 comments

Comments

@khaos-one
Copy link
Contributor

The Prefix property (and underlying code) does not behave as expected.

If one have data directory with two files, for example, app.html and index.html, overall Prefix property of assetFS becomes equal to the path of one of the files in the dir (for example, Prefix = data/app.html).

The Open() call (as seen from sources) just prepends Prefix field to the requested file name, which, considering the above, leads to unavailability of all packed files -- request to data/index.html is translated to data/app.html/data/index.html which is not quite correct.

If one is specifying the prefix explicitly with --prefix key the software acts exactly the same.

A dirty resolution to the issue is to completely omit Prefix field, then it works like a charm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant