It seems that here, you'd want to do this instead:

```javascript
if (options.listFiles) {
  var terminator = options.printNull ? '\0' : '\n';
  fileNames.push(file.filename + terminator);
}
```