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

converting to csv always throw -> Error: ENOENT: no such file or directory, open ... #28

Open
alexrah opened this issue Mar 18, 2018 · 0 comments

Comments

@alexrah
Copy link

alexrah commented Mar 18, 2018

I honestly dont understand why the file path passed to cli as
$ node-dbf convert file.dbf

get joined to node-dbf folder inside node_modules.

I ended up replacing this line:

.action(function(f) { file = path.join(__dirname, '../', f); })

with:
.action(function(f) { file = f; })

this solved the issue and allowed me to convert to csv, but feels like I'm missing something.

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