From 5da45b404c15e22cfab27199b73133e822f3c117 Mon Sep 17 00:00:00 2001 From: Dave C-J Date: Sat, 8 Nov 2014 15:34:37 +0000 Subject: [PATCH] Add delete option to File node to replace msg.delete option - now deprecated but not removed. Addresses some of the confusion for Issue #399 --- nodes/core/storage/50-file.html | 28 +++++++++++++++++++--------- nodes/core/storage/50-file.js | 29 ++++++++++++++++++----------- 2 files changed, 37 insertions(+), 20 deletions(-) diff --git a/nodes/core/storage/50-file.html b/nodes/core/storage/50-file.html index e85c87604..434440a5a 100644 --- a/nodes/core/storage/50-file.html +++ b/nodes/core/storage/50-file.html @@ -20,14 +20,17 @@
+ + +
+
- -
-
- - - +
@@ -40,7 +43,7 @@

The filename can be configured in the node, if left blank it should be set in an incoming message on msg.filename.

A newline is added to every message. But this can be turned off if required, for example, to allow binary files to be written.

The default behaviour is to append to the file. This can be changed to overwrite the file each time, for example if you want to output a "static" web page or report.

-

If a msg.delete property exists then the file will be deleted instead.

+

This node can also be configured to delete a file if required. Note: Using msg.delete is now deprecated.