1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Tweak info of watch and file nodes to be more style consistent with others.

This commit is contained in:
Dave C-J 2014-09-07 22:11:00 +01:00
parent 6076be011a
commit 5872541b1b
2 changed files with 5 additions and 5 deletions

View File

@ -31,9 +31,9 @@
<p>You can enter a list of comma separated directories or files if you like. You will need to put " around any that have spaces in.</p> <p>You can enter a list of comma separated directories or files if you like. You will need to put " around any that have spaces in.</p>
<p>On Windows you must use double slashes \\ in any directory names.</p> <p>On Windows you must use double slashes \\ in any directory names.</p>
<p>The full filename of the file that actually changed is put into <b>msg.payload</b>, while a stringified version of the watched criteria is returned in <b>msg.topic</b>.</p> <p>The full filename of the file that actually changed is put into <b>msg.payload</b>, while a stringified version of the watched criteria is returned in <b>msg.topic</b>.</p>
<p>msg.file contains just the short filename of the file that changed.</p> <p><b>msg.file</b> contains just the short filename of the file that changed.</p>
<p>Of course in Linux, <i>everything</i> could be a file and thus watched...</p> <p>Of course in Linux, <i>everything</i> could be a file and thus watched...</p>
<p><b>Note: </b>The directory or file must exist in order to be watched. If the file or directory get deleted it will no longer be monitored even if it gets re-created.</p> <p><b>Note: </b>The directory or file must exist in order to be watched. If the file or directory gets deleted it may no longer be monitored even if it gets re-created.</p>
</script> </script>
<script type="text/javascript"> <script type="text/javascript">

View File

@ -37,10 +37,10 @@
<script type="text/x-red" data-help-name="file"> <script type="text/x-red" data-help-name="file">
<p>Writes <b>msg.payload</b> to the file specified, e.g. to create a log.</p> <p>Writes <b>msg.payload</b> to the file specified, e.g. to create a log.</p>
<p>The filename can be overridden by the <code>filename</code> property of the incoming message.</p> <p>The filename can be overridden by the <b>msg.filename</b> property of the incoming message.</p>
<p>A newline is added to every message. But this can be turned off if required, for example, to allow binary files to be written.</p> <p>A newline is added to every message. But this can be turned off if required, for example, to allow binary files to be written.</p>
<p>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.</p> <p>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.</p>
<p>If a <code>delete</code> property exists then the file will be deleted instead.</p> <p>If a <b>msg.delete</b> property exists then the file will be deleted instead.</p>
</script> </script>
<script type="text/x-red" data-template-name="file in"> <script type="text/x-red" data-template-name="file in">
@ -63,7 +63,7 @@
<script type="text/x-red" data-help-name="file in"> <script type="text/x-red" data-help-name="file in">
<p>Reads the specified file and sends the content as <b>msg.payload</b>, and the filename as <b>msg.filename</b>.</p> <p>Reads the specified file and sends the content as <b>msg.payload</b>, and the filename as <b>msg.filename</b>.</p>
<p>The filename can be overridden by the <code>filename</code> property of the incoming message.</p> <p>The filename can be overridden by the <b>msg.filename</b> property of the incoming message.</p>
</script> </script>
<script type="text/javascript"> <script type="text/javascript">