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

file.path undefined in fileinfo.js #57

Open
mirk8xr opened this issue Dec 12, 2016 · 0 comments
Open

file.path undefined in fileinfo.js #57

mirk8xr opened this issue Dec 12, 2016 · 0 comments

Comments

@mirk8xr
Copy link

mirk8xr commented Dec 12, 2016

There is a problem with the latest versions of nodejs.

In particular in fileInfo.js (line 24) there is the need to know the file path.

function FileInfo(file, opts, fields) { ... this.key = getFileKey(file.path); ... }

but in local.js (line 24) the path is not passed in the object:

var fileInfo = new FileInfo({ name: name, size: stats.size, lastMod: stats.mtime }, options);

The method getFileKey() return path.basename(filePath); but being undefined path that causes an error.

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