@objectivebyaptean/fs-ops-objective-edition 1.6.1 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +11 -11
  2. package/fs-ops.html +33 -33
  3. package/fs-ops.js +11 -11
  4. package/package.json +1 -1
package/README.md CHANGED
@@ -5,17 +5,17 @@ This node is a wrapper around many of the functions in Node's file system librar
5
5
 
6
6
  The nodes and functions provided are:
7
7
 
8
- * fs-ops-move - Move or rename files and directories
9
- * fs-ops-copy - Copy or link files
10
- * fs-ops-delete - Delete file/s or directory
11
- * fs-ops-access - Test existence and accessibility of a file or directory
12
- * fs-ops-size - Get size of a file or directory in bytes
13
- * fs-ops-stats - Get stats of a file or directory
14
- * fs-ops-link - Determines if a file is a link and returns the file it links to.
15
- * fs-ops-type - Determines the type of a file - regular, directory, character, or special
16
- * fs-ops-dir - Get array of file and directory names in a directory
17
- * fs-ops-mkdir - Make a new directory
18
- * fs-ops-mktmpdir - Make a new directory with a random unique name
8
+ * objt-fs-ops-move - Move or rename files and directories
9
+ * objt-fs-ops-copy - Copy or link files
10
+ * objt-fs-ops-delete - Delete file/s or directory
11
+ * objt-fs-ops-access - Test existence and accessibility of a file or directory
12
+ * objt-fs-ops-size - Get size of a file or directory in bytes
13
+ * objt-fs-ops-stats - Get stats of a file or directory
14
+ * objt-fs-ops-link - Determines if a file is a link and returns the file it links to.
15
+ * objt-fs-ops-type - Determines the type of a file - regular, directory, character, or special
16
+ * objt-fs-ops-dir - Get array of file and directory names in a directory
17
+ * objt-fs-ops-mkdir - Make a new directory
18
+ * objt-fs-ops-mktmpdir - Make a new directory with a random unique name
19
19
 
20
20
 
21
21
  Parameters such as path and filename can be sourced from strings, or message, flow, or global property. Likewise, results can be stored in a message, flow or global property.
package/fs-ops.html CHANGED
@@ -1,5 +1,5 @@
1
1
  <script type="text/javascript">
2
- RED.nodes.registerType('fs-ops-move',{
2
+ RED.nodes.registerType('objt-fs-ops-move',{
3
3
  category: 'storage',
4
4
  color: '#767432',
5
5
  defaults: {
@@ -61,7 +61,7 @@
61
61
  });
62
62
  </script>
63
63
 
64
- <script type="text/x-red" data-template-name="fs-ops-move">
64
+ <script type="text/x-red" data-template-name="objt-fs-ops-move">
65
65
  <div class="form-row">
66
66
  <label for="node-input-name"><i class="icon-tag"></i> Name</label>
67
67
  <input type="text" id="node-input-name" placeholder="Name">
@@ -93,7 +93,7 @@
93
93
 
94
94
  </script>
95
95
 
96
- <script type="text/x-red" data-help-name="fs-ops-move">
96
+ <script type="text/x-red" data-help-name="objt-fs-ops-move">
97
97
 
98
98
  <p>Move or rename a file in the local filesystem.</p>
99
99
 
@@ -134,7 +134,7 @@
134
134
  </script>
135
135
 
136
136
  <script type="text/javascript">
137
- RED.nodes.registerType('fs-ops-copy',{
137
+ RED.nodes.registerType('objt-fs-ops-copy',{
138
138
  category: 'storage',
139
139
  color: '#767432',
140
140
  defaults: {
@@ -197,7 +197,7 @@
197
197
  });
198
198
  </script>
199
199
 
200
- <script type="text/x-red" data-template-name="fs-ops-copy">
200
+ <script type="text/x-red" data-template-name="objt-fs-ops-copy">
201
201
  <div class="form-row">
202
202
  <label for="node-input-name"><i class="icon-tag"></i> Name</label>
203
203
  <input type="text" id="node-input-name" placeholder="Name">
@@ -233,7 +233,7 @@
233
233
 
234
234
  </script>
235
235
 
236
- <script type="text/x-red" data-help-name="fs-ops-copy">
236
+ <script type="text/x-red" data-help-name="objt-fs-ops-copy">
237
237
  <p>Copies or links a file from the source to the destination.</p>
238
238
 
239
239
  <h3>Properties</h3>
@@ -273,7 +273,7 @@
273
273
  </script>
274
274
 
275
275
  <script type="text/javascript">
276
- RED.nodes.registerType('fs-ops-delete',{
276
+ RED.nodes.registerType('objt-fs-ops-delete',{
277
277
  category: 'storage',
278
278
  color: '#767432',
279
279
  defaults: {
@@ -314,7 +314,7 @@
314
314
  });
315
315
  </script>
316
316
 
317
- <script type="text/x-red" data-template-name="fs-ops-delete">
317
+ <script type="text/x-red" data-template-name="objt-fs-ops-delete">
318
318
  <div class="form-row">
319
319
  <label for="node-input-name"><i class="icon-tag"></i> Name</label>
320
320
  <input type="text" id="node-input-name" placeholder="Name">
@@ -336,7 +336,7 @@
336
336
  </div>
337
337
  </script>
338
338
 
339
- <script type="text/x-red" data-help-name="fs-ops-delete">
339
+ <script type="text/x-red" data-help-name="objt-fs-ops-delete">
340
340
  <p>Deletes a file on host filesystem.</p>
341
341
  <h3>Properties</h3>
342
342
  <dl class="message-properties">
@@ -370,7 +370,7 @@
370
370
 
371
371
 
372
372
  <script type="text/javascript">
373
- RED.nodes.registerType('fs-ops-access',{
373
+ RED.nodes.registerType('objt-fs-ops-access',{
374
374
  category: 'storage',
375
375
  color: '#767432',
376
376
  defaults: {
@@ -414,7 +414,7 @@
414
414
 
415
415
 
416
416
 
417
- <script type="text/x-red" data-template-name="fs-ops-access">
417
+ <script type="text/x-red" data-template-name="objt-fs-ops-access">
418
418
  <div class="form-row">
419
419
  <label for="node-input-name"><i class="icon-tag"></i> Name</label>
420
420
  <input type="text" id="node-input-name" placeholder="Name">
@@ -442,7 +442,7 @@
442
442
  </div>
443
443
  </script>
444
444
 
445
- <script type="text/x-red" data-help-name="fs-ops-access">
445
+ <script type="text/x-red" data-help-name="objt-fs-ops-access">
446
446
  <p>Tests if a file is accessible on the host filesystem.</p>
447
447
  <h3>Properties</h3>
448
448
  <dl class="message-properties">
@@ -477,7 +477,7 @@
477
477
 
478
478
 
479
479
  <script type="text/javascript">
480
- RED.nodes.registerType('fs-ops-size',{
480
+ RED.nodes.registerType('objt-fs-ops-size',{
481
481
  category: 'storage',
482
482
  color: '#767432',
483
483
  defaults: {
@@ -527,7 +527,7 @@
527
527
  });
528
528
  </script>
529
529
 
530
- <script type="text/x-red" data-template-name="fs-ops-size">
530
+ <script type="text/x-red" data-template-name="objt-fs-ops-size">
531
531
  <div class="form-row">
532
532
  <label for="node-input-name"><i class="icon-tag"></i> Name</label>
533
533
  <input type="text" id="node-input-name" placeholder="Name">
@@ -549,7 +549,7 @@
549
549
  </div>
550
550
  </script>
551
551
 
552
- <script type="text/x-red" data-help-name="fs-ops-size">
552
+ <script type="text/x-red" data-help-name="objt-fs-ops-size">
553
553
  <p>Determines the size of a file on host filesystem.</p>
554
554
  <h3>Properties</h3>
555
555
  <dl class="message-properties">
@@ -581,7 +581,7 @@
581
581
  </script>
582
582
 
583
583
  <script type="text/javascript">
584
- RED.nodes.registerType('fs-ops-stats',{
584
+ RED.nodes.registerType('objt-fs-ops-stats',{
585
585
  category: 'storage',
586
586
  color: '#767432',
587
587
  defaults: {
@@ -631,7 +631,7 @@
631
631
  });
632
632
  </script>
633
633
 
634
- <script type="text/x-red" data-template-name="fs-ops-stats">
634
+ <script type="text/x-red" data-template-name="objt-fs-ops-stats">
635
635
  <div class="form-row">
636
636
  <label for="node-input-name"><i class="icon-tag"></i> Name</label>
637
637
  <input type="text" id="node-input-name" placeholder="Name">
@@ -653,7 +653,7 @@
653
653
  </div>
654
654
  </script>
655
655
 
656
- <script type="text/x-red" data-help-name="fs-ops-stats">
656
+ <script type="text/x-red" data-help-name="objt-fs-ops-stats">
657
657
  <p>Returns the stats of a file on host filesystem.</p>
658
658
  <h3>Properties</h3>
659
659
  <dl class="message-properties">
@@ -686,7 +686,7 @@
686
686
  </script>
687
687
 
688
688
  <script type="text/javascript">
689
- RED.nodes.registerType('fs-ops-link',{
689
+ RED.nodes.registerType('objt-fs-ops-link',{
690
690
  category: 'storage',
691
691
  color: '#767432',
692
692
  defaults: {
@@ -736,7 +736,7 @@
736
736
  });
737
737
  </script>
738
738
 
739
- <script type="text/x-red" data-template-name="fs-ops-link">
739
+ <script type="text/x-red" data-template-name="objt-fs-ops-link">
740
740
  <div class="form-row">
741
741
  <label for="node-input-name"><i class="icon-tag"></i> Name</label>
742
742
  <input type="text" id="node-input-name" placeholder="Name">
@@ -758,7 +758,7 @@
758
758
  </div>
759
759
  </script>
760
760
 
761
- <script type="text/x-red" data-help-name="fs-ops-link">
761
+ <script type="text/x-red" data-help-name="objt-fs-ops-link">
762
762
  <p>Determines if a file on host filesystem is a link and returns the file it links to.</p>
763
763
  <h3>Properties</h3>
764
764
  <dl class="message-properties">
@@ -791,7 +791,7 @@
791
791
 
792
792
 
793
793
  <script type="text/javascript">
794
- RED.nodes.registerType('fs-ops-type',{
794
+ RED.nodes.registerType('objt-fs-ops-type',{
795
795
  category: 'storage',
796
796
  color: '#767432',
797
797
  defaults: {
@@ -841,7 +841,7 @@
841
841
  });
842
842
  </script>
843
843
 
844
- <script type="text/x-red" data-template-name="fs-ops-type">
844
+ <script type="text/x-red" data-template-name="objt-fs-ops-type">
845
845
  <div class="form-row">
846
846
  <label for="node-input-name"><i class="icon-tag"></i> Name</label>
847
847
  <input type="text" id="node-input-name" placeholder="Name">
@@ -863,7 +863,7 @@
863
863
  </div>
864
864
  </script>
865
865
 
866
- <script type="text/x-red" data-help-name="fs-ops-type">
866
+ <script type="text/x-red" data-help-name="objt-fs-ops-type">
867
867
  <p>Determines the type of a file on host filesystem.</p>
868
868
  <h3>Properties</h3>
869
869
  <dl class="message-properties">
@@ -904,7 +904,7 @@
904
904
 
905
905
 
906
906
  <script type="text/javascript">
907
- RED.nodes.registerType('fs-ops-dir',{
907
+ RED.nodes.registerType('objt-fs-ops-dir',{
908
908
  category: 'storage',
909
909
  color: '#767432',
910
910
  defaults: {
@@ -954,7 +954,7 @@
954
954
  });
955
955
  </script>
956
956
 
957
- <script type="text/x-red" data-template-name="fs-ops-dir">
957
+ <script type="text/x-red" data-template-name="objt-fs-ops-dir">
958
958
  <div class="form-row">
959
959
  <label for="node-input-name"><i class="icon-tag"></i> Name</label>
960
960
  <input type="text" id="node-input-name" placeholder="Name">
@@ -976,7 +976,7 @@
976
976
  </div>
977
977
  </script>
978
978
 
979
- <script type="text/x-red" data-help-name="fs-ops-dir">
979
+ <script type="text/x-red" data-help-name="objt-fs-ops-dir">
980
980
  <p>Lists the files in a directory on host filesystem.</p>
981
981
  <h3>Properties</h3>
982
982
  <dl class="message-properties">
@@ -1008,7 +1008,7 @@
1008
1008
  </script>
1009
1009
 
1010
1010
  <script type="text/javascript">
1011
- RED.nodes.registerType('fs-ops-mkdir',{
1011
+ RED.nodes.registerType('objt-fs-ops-mkdir',{
1012
1012
  category: 'storage',
1013
1013
  color: '#767432',
1014
1014
  defaults: {
@@ -1060,7 +1060,7 @@
1060
1060
  });
1061
1061
  </script>
1062
1062
 
1063
- <script type="text/x-red" data-template-name="fs-ops-mkdir">
1063
+ <script type="text/x-red" data-template-name="objt-fs-ops-mkdir">
1064
1064
  <div class="form-row">
1065
1065
  <label for="node-input-name"><i class="icon-tag"></i> Name</label>
1066
1066
  <input type="text" id="node-input-name" placeholder="Name">
@@ -1091,7 +1091,7 @@
1091
1091
  </div>
1092
1092
  </script>
1093
1093
 
1094
- <script type="text/x-red" data-help-name="fs-ops-mkdir">
1094
+ <script type="text/x-red" data-help-name="objt-fs-ops-mkdir">
1095
1095
  <p>Makes a directory on host filesystem.</p>
1096
1096
  <h3>Properties</h3>
1097
1097
  <dl class="message-properties">
@@ -1123,7 +1123,7 @@
1123
1123
  </script>
1124
1124
 
1125
1125
  <script type="text/javascript">
1126
- RED.nodes.registerType('fs-ops-mktmpdir',{
1126
+ RED.nodes.registerType('objt-fs-ops-mktmpdir',{
1127
1127
  category: 'storage',
1128
1128
  color: '#767432',
1129
1129
  defaults: {
@@ -1174,7 +1174,7 @@
1174
1174
  });
1175
1175
  </script>
1176
1176
 
1177
- <script type="text/x-red" data-template-name="fs-ops-mktmpdir">
1177
+ <script type="text/x-red" data-template-name="objt-fs-ops-mktmpdir">
1178
1178
  <div class="form-row">
1179
1179
  <label for="node-input-name"><i class="icon-tag"></i> Name</label>
1180
1180
  <input type="text" id="node-input-name" placeholder="Name">
@@ -1196,7 +1196,7 @@
1196
1196
  </div>
1197
1197
  </script>
1198
1198
 
1199
- <script type="text/x-red" data-help-name="fs-ops-mktmpdir">
1199
+ <script type="text/x-red" data-help-name="objt-fs-ops-mktmpdir">
1200
1200
  <p>Creates a new temporary directory on host filesystem.</p>
1201
1201
  <h3>Properties</h3>
1202
1202
  <dl class="message-properties">
package/fs-ops.js CHANGED
@@ -144,7 +144,7 @@ module.exports = function(RED) {
144
144
  });
145
145
  }
146
146
 
147
- RED.nodes.registerType("fs-ops-move", MoveNode);
147
+ RED.nodes.registerType("objt-fs-ops-move", MoveNode);
148
148
 
149
149
 
150
150
 
@@ -261,7 +261,7 @@ module.exports = function(RED) {
261
261
  });
262
262
  }
263
263
 
264
- RED.nodes.registerType("fs-ops-copy", CopyNode);
264
+ RED.nodes.registerType("objt-fs-ops-copy", CopyNode);
265
265
 
266
266
 
267
267
  function DeleteNode(n) {
@@ -320,7 +320,7 @@ module.exports = function(RED) {
320
320
  });
321
321
  }
322
322
 
323
- RED.nodes.registerType("fs-ops-delete", DeleteNode);
323
+ RED.nodes.registerType("objt-fs-ops-delete", DeleteNode);
324
324
 
325
325
 
326
326
  function AccessNode(n) {
@@ -363,7 +363,7 @@ module.exports = function(RED) {
363
363
  });
364
364
  }
365
365
 
366
- RED.nodes.registerType("fs-ops-access", AccessNode);
366
+ RED.nodes.registerType("objt-fs-ops-access", AccessNode);
367
367
 
368
368
 
369
369
  function SizeNode(n) {
@@ -411,7 +411,7 @@ module.exports = function(RED) {
411
411
  });
412
412
  }
413
413
 
414
- RED.nodes.registerType("fs-ops-size", SizeNode);
414
+ RED.nodes.registerType("objt-fs-ops-size", SizeNode);
415
415
 
416
416
  function StatsNode(n) {
417
417
  RED.nodes.createNode(this,n);
@@ -458,7 +458,7 @@ module.exports = function(RED) {
458
458
  });
459
459
  }
460
460
 
461
- RED.nodes.registerType("fs-ops-stats", StatsNode);
461
+ RED.nodes.registerType("objt-fs-ops-stats", StatsNode);
462
462
 
463
463
  function LinkNode(n) {
464
464
  RED.nodes.createNode(this,n);
@@ -518,7 +518,7 @@ module.exports = function(RED) {
518
518
  });
519
519
  }
520
520
 
521
- RED.nodes.registerType("fs-ops-link", LinkNode);
521
+ RED.nodes.registerType("objt-fs-ops-link", LinkNode);
522
522
 
523
523
 
524
524
  function TypeNode(n) {
@@ -575,7 +575,7 @@ module.exports = function(RED) {
575
575
  });
576
576
  }
577
577
 
578
- RED.nodes.registerType("fs-ops-type", TypeNode);
578
+ RED.nodes.registerType("objt-fs-ops-type", TypeNode);
579
579
 
580
580
 
581
581
 
@@ -621,7 +621,7 @@ module.exports = function(RED) {
621
621
  });
622
622
  }
623
623
 
624
- RED.nodes.registerType("fs-ops-dir", DirNode);
624
+ RED.nodes.registerType("objt-fs-ops-dir", DirNode);
625
625
 
626
626
  function MkdirNode(n) {
627
627
  RED.nodes.createNode(this,n);
@@ -666,7 +666,7 @@ module.exports = function(RED) {
666
666
  });
667
667
  }
668
668
 
669
- RED.nodes.registerType("fs-ops-mkdir", MkdirNode);
669
+ RED.nodes.registerType("objt-fs-ops-mkdir", MkdirNode);
670
670
 
671
671
  function MktmpdirNode(n) {
672
672
  RED.nodes.createNode(this,n);
@@ -710,7 +710,7 @@ module.exports = function(RED) {
710
710
  });
711
711
  }
712
712
 
713
- RED.nodes.registerType("fs-ops-mktmpdir", MktmpdirNode);
713
+ RED.nodes.registerType("objt-fs-ops-mktmpdir", MktmpdirNode);
714
714
 
715
715
  };
716
716
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@objectivebyaptean/fs-ops-objective-edition",
3
- "version": "1.6.1",
3
+ "version": "1.7.0",
4
4
  "description": "A node-red node to perform basic file system operations.",
5
5
  "dependencies": {},
6
6
  "author": {