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

No such Key error because of '\' in filepath #2

Open
RaghuChandrasekaran opened this issue Dec 10, 2015 · 0 comments
Open

No such Key error because of '\' in filepath #2

RaghuChandrasekaran opened this issue Dec 10, 2015 · 0 comments

Comments

@RaghuChandrasekaran
Copy link

I am getting No such Key error when trying to access files because in filepath a backslash gets added.I saw that there are checks to remove forwardslash so inserted this bit of code to check and remove backslash too.That fixes the problem.

filepath = filepath[0] == '\\' ? filepath.substr(1) : filepath,

In context's url a backslash gets added.

if (this.url.indexOf('/') !== 0) this.url = '/' + this.url;

I have sent a PR #3 with this small change.

RaghuChandrasekaran referenced this issue in RaghuChandrasekaran/dpd-storage-pkgcloud Dec 10, 2015
Removing '\' that appears in filepath.This results in No Such Key error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant