-
Notifications
You must be signed in to change notification settings - Fork 2
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
Can't concat multiple files #4
Comments
I'm also experiencing the same issue. If the change function(json) to function(err, json), you can then log out the JSON file. Still it only returns 1 file for me. |
Is it possible to provide the files to be able to reproduce this bug. Also note that the library is forgiving in that if a file could not be parsed, it will be skipped over. |
EDIT: After digging, I found this so I replace my comment with this better one: @GochoMugo Get the same issue here. The bug seems to be cause by one of the 3 replaces in the As each of my json file contain an object, the result should be an array of object. But, by replacing For example, taking these two files: File A
File B
Final string after before the replace:
And after the replace:
Expected result:
Without the replace, that should work as the |
@GochoMugo Just saw that the logic in the |
Has this bug been fixed? |
Here is my code, I'm trying to concat multiple files in xfiles folder.
jsonConcat( { src: "./xfiles", dest: "./result.json" }, function(json) { console.log(json); } );
this is what returns on console:
null
result.json only contains one of the files.
Thank you.
The text was updated successfully, but these errors were encountered: