DeanCording / node-red-contrib-fs-ops

A Node Red node for performing file system operations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using PM2 on MacOS: fs-ops-dir node (node-red-contrib-fs-ops) permission issue

rakgupta opened this issue · comments

Hello - I am running into what I think is a permissions problem with the fs-ops-dir node (directory node) when using PM2. I have a flow that scans a folder, identifies the latest file and ftp's it a NAS folder.

In the launchd script for PM2, the user parameter is correct (my username) but when the node tries to access the folder, it returns an error (Error: EPERM: operation not permitted, scandir). If I stop the Node-RED process from PM2 and launch it directly from the terminal, it works correctly.

Any idea what I can do to fix this? Thanks for your help.

I moved the file into the "Public" folder and now it works correctly.