# Fs-ops-access node output formats

**URL:** <https://discourse.nodered.org/t/fs-ops-access-node-output-formats/55610>\
**Category:** General\
**Created:** [23 December 2021 12:50 UTC](https://discourse.nodered.org/t/fs-ops-access-node-output-formats/55610 "2021-12-23T12:50:51Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![SS-Akhilesh-Appala](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ss-akhilesh-appala/32/44482_2.png) [@SS-Akhilesh-Appala](https://discourse.nodered.org/u/SS-Akhilesh-Appala)\
**Post date:** [23 December 2021 12:50 UTC](https://discourse.nodered.org/t/fs-ops-access-node-output-formats/55610/1 "2021-12-23T12:50:51Z")

</div>

HI Team  
Can someone please help me here to understand the output format of fs-ops-access(a node used to check the file existence and access) Node under node-red-contrib-fs-ops.

I am trying to build a sample flow with 2 params given like folder path and file name mentioned below  
and once I trigger, I am getting the output as a time stamp.  
How will I get to know whether the file is existing and accessible using this node ?  
or is there any other approach to check the file size existence in a local system using node-red?

 ![Screenshot 2021-12-23 at 6.14.49 PM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/0/f088a7fb7dc9102ad6d2f84d50dee55411473b5a.jpeg)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [23 December 2021 12:55 UTC](https://discourse.nodered.org/t/fs-ops-access-node-output-formats/55610/2 "2021-12-23T12:55:34Z")

</div>

Change your debug node to show all properties and check again 😉

Ps, read the built in help - I'm sure it's mentioned there.

---

<div class="post-metadata">

**Author:** ![SS-Akhilesh-Appala](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ss-akhilesh-appala/32/44482_2.png) [@SS-Akhilesh-Appala](https://discourse.nodered.org/u/SS-Akhilesh-Appala)\
**Post date:** [23 December 2021 15:07 UTC](https://discourse.nodered.org/t/fs-ops-access-node-output-formats/55610/3 "2021-12-23T15:07:18Z")

</div>

Yeah, I tried that too.  
But getting empty topic something like below,  
msgid: "cae305b5.ad2dd8"  
payload: 12/23/2021, 8:33:44 PM [UTC+5.5]  
topic: ""

and in a wrong path scenario, I am getting an error obj is being added.  
So that's the reason I am not able to decide whether it is success or failure

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [23 December 2021 15:20 UTC](https://discourse.nodered.org/t/fs-ops-access-node-output-formats/55610/4 "2021-12-23T15:20:29Z")

</div>

Can you try with forward slashes in the path?

Ps, is you path a directory name or filepath?

Try the slashes then try just a directory name.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [23 December 2021 15:22 UTC](https://discourse.nodered.org/t/fs-ops-access-node-output-formats/55610/5 "2021-12-23T15:22:03Z")

</div>

Also, is there actually a file named `output`? That is odd for Windows (check the file properties, it might have an extension like CSV or txt)

---

<div class="post-metadata">

**Author:** ![SS-Akhilesh-Appala](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ss-akhilesh-appala/32/44482_2.png) [@SS-Akhilesh-Appala](https://discourse.nodered.org/u/SS-Akhilesh-Appala)\
**Post date:** [24 December 2021 04:55 UTC](https://discourse.nodered.org/t/fs-ops-access-node-output-formats/55610/6 "2021-12-24T04:55:50Z")

</div>

Yeah, I tried with forward slash, but no luck. it is not able to identify and shows 0x2f not recognized.  
Yes, I am using the directory name till the folder where the file exists.

---

<div class="post-metadata">

**Author:** ![SS-Akhilesh-Appala](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ss-akhilesh-appala/32/44482_2.png) [@SS-Akhilesh-Appala](https://discourse.nodered.org/u/SS-Akhilesh-Appala)\
**Post date:** [24 December 2021 04:56 UTC](https://discourse.nodered.org/t/fs-ops-access-node-output-formats/55610/7 "2021-12-24T04:56:46Z")

</div>

output is a file. without any extension. even I tried adding .txt to that and did changes in nodered. even then it is not working

---

<div class="post-metadata">

**Author:** ![SS-Akhilesh-Appala](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ss-akhilesh-appala/32/44482_2.png) [@SS-Akhilesh-Appala](https://discourse.nodered.org/u/SS-Akhilesh-Appala)\
**Post date:** [24 December 2021 05:13 UTC](https://discourse.nodered.org/t/fs-ops-access-node-output-formats/55610/8 "2021-12-24T05:13:32Z")

</div>

And whenever i am using a path through flow variables, I am getting the below error from fs-ops-access node  
and there is no variable regarding to length.  
msg: error  
"TypeError: Cannot read property 'length' of undefined"

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [24 December 2021 06:12 UTC](https://discourse.nodered.org/t/fs-ops-access-node-output-formats/55610/9 "2021-12-24T06:12:14Z")

</div>

Can you add a catch node + debug node (set it to complete msg object output), this may give more specific details about the issue you are facing.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [22 February 2022 06:13 UTC](https://discourse.nodered.org/t/fs-ops-access-node-output-formats/55610/10 "2022-02-22T06:13:11Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
