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

Uncaught error when trying to filer.open() a directory #50

Open
bennlich opened this issue Mar 10, 2014 · 2 comments
Open

Uncaught error when trying to filer.open() a directory #50

bennlich opened this issue Mar 10, 2014 · 2 comments

Comments

@bennlich
Copy link
Contributor

I'll try and patch this when I get a chance.

@1updesign
Copy link

Did you get anywhere with this? I'm experiencing a roadblock so would appreciate a little help with how to patch or a workaround to check the file exists beforehand!

@bennlich
Copy link
Contributor Author

Doesn't look like I ever ended up fixing this, but I think what you want is to check something like:

if (!fileEntry.isFile) {
  // do something with opt_errorHandler
}
else {
  fileEntry.file(successCallback, opt_errorHandler);
}

right around here: https://github.com/ebidel/filer.js/blob/master/src/filer.js#L599.

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

2 participants