diff --git a/README.md b/README.md index 9363050..6cf43de 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/fs/fs-file-lister.js b/fs/fs-file-lister.js index 3e5602a..39c356c 100644 --- a/fs/fs-file-lister.js +++ b/fs/fs-file-lister.js @@ -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) diff --git a/package.json b/package.json index dbf5867..414ed02 100644 --- a/package.json +++ b/package.json @@ -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",