Skip to content

Commit

Permalink
Fix Issue #19
Browse files Browse the repository at this point in the history
  • Loading branch information
TotallyInformation committed Jan 15, 2020
1 parent c3bcc80 commit 5742d00
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,14 @@ To install a development version, use:
- all options now set able the incoming msg
- (\*) because of the new functionality, existing nodes may see more results returned

- 1.3.1 - 2020-01-13 new functionality(\*)
- 1.3.1 - 2020-01-13 new functionality & bug fix
- Fix memory leak [Issue #18](https://github.com/TotallyInformation/node-red-contrib-fs/issues/18) - thanks to Colin for reporting.
- Add configuration option to turn off output warnings - these can be excessive as they include "cannot access" general warnings (permissions).
- Code tidy

- 1.3.2 - 2020-01-15 Bug Fix
- Fix inability to pass in start folder via msg [Issue #19](https://github.com/TotallyInformation/node-red-contrib-fs/issues/19) - thanks to Paul for reporting.

# Depends On
- [readdirp](https://github.com/paulmillr/readdirp)

Expand Down
2 changes: 1 addition & 1 deletion fs/fs-file-lister.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ module.exports = function(RED) {

// Recursively read the folder using the stream API
// @ts-ignore
readdirp(path.join(node.start), options)
readdirp(path.join(clonedMsg.config.start), options)
// Called if a found entry cannot be accessed (e.g. permissions)
.on('warn', (err) => {
if ( node.showWarnings === true ) node.warn('File could not be accessed', err)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-red-contrib-fs",
"version": "1.3.1",
"version": "1.3.2",
"description": "Node-Red Node that handles the host filing system.",
"scripts": {
"npmtags": "npm dist-tag ls node-red-contrib-uibuilder",
Expand Down

0 comments on commit 5742d00

Please sign in to comment.