Trying to iterate through a folder

My n8n instance is running on Unraid. in the container I have my local media folder mapped to /media within the container. In the container in the config file I have the following included.

{
“encryptionKey”: “empty_for_this_post”,
“filesystem”: {
“allowedPaths”: [“/media”]
}
}

In my workflow I’m using the manual trigger and the Read/Write Files from Disk node. In the node I have “/media/Movies/**” entered in the files selector. When I run the node I get the following error. What am I doing wrong?

Problem in node ‘Read/Write Files from Disk‘

Access to the file is not allowed. Allowed paths: /home/node/.n8n-files

Hey @Darkmatter5 !

Here are the docs :

The env variable

N8N_RESTRICT_FILE_ACCESS_TO

Is your friend now.

This are new security rules imposed in new versions.

Cheers!