# File lister: problem "File could not be accessed"

**URL:** <https://discourse.nodered.org/t/file-lister-problem-file-could-not-be-accessed/37579>\
**Category:** General\
**Created:** [16 December 2020 13:55 UTC](https://discourse.nodered.org/t/file-lister-problem-file-could-not-be-accessed/37579 "2020-12-16T13:55:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rg24git](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rg24git/32/31961_2.png) [@rg24git](https://discourse.nodered.org/u/rg24git)\
**Post date:** [16 December 2020 13:55 UTC](https://discourse.nodered.org/t/file-lister-problem-file-could-not-be-accessed/37579/1 "2020-12-16T13:55:51Z")

</div>

I have Synology with hassio and node-red  
I work in administrator account

I search to use File Lister. into node-red

No succes ☹

I have message "File could not be accessed"

```auto
[{"id":"a99e9181.01db6","type":"inject","z":"2008dc88.52bbc4","name":"Inject Payload ","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":"","topic":"","payload":"{\"folder\":\"/var/services/homes/rg24Syno/.node-red\"}","payloadType":"json","x":130,"y":240,"wires":[["f05ab586.600e48"]]}]

```

---

<div class="post-metadata">

**Author:** ![christopherm123](https://avatars.discourse-cdn.com/v4/letter/c/ecb155/32.png) [@christopherm123](https://discourse.nodered.org/u/christopherm123)\
**Post date:** [16 December 2020 15:35 UTC](https://discourse.nodered.org/t/file-lister-problem-file-could-not-be-accessed/37579/2 "2020-12-16T15:35:23Z")

</div>

Hello, sorry to hear about your problem. Unfortunately I cannot use the copy and pasted json. On the website you have to place it within the "preformatted text"option.  
[https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506/4](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506/4)

Though just by reading the code try removing the dot within "var/services/homes/rg24Syno/.node-red"

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [16 December 2020 16:48 UTC](https://discourse.nodered.org/t/file-lister-problem-file-could-not-be-accessed/37579/3 "2020-12-16T16:48:02Z")

</div>

The flow you provided only contains an `inject` node. You must select all the nodes inorder for someone to see what you are doing.

Also before attaching a flow, please read this post:

> [@How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506):
>
> To share code samples or flow json in this forum, you need to take care to format it properly so that it is displayed correctly. The easiest way to do that is to click the 'Preformatted Text' button in the toolbar: [image] Then paste in your code or flow json. You should end up with three back-tick characters - ``` - on their own line before and after the code. On standard US English keyboards, this is on the same key as the ~ character. Using the backticks will ens…

---

<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:** [14 February 2021 16:48 UTC](https://discourse.nodered.org/t/file-lister-problem-file-could-not-be-accessed/37579/4 "2021-02-14T16:48:07Z")

</div>

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