Skip to content

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

Description

@alexrah

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions