Page 1 of 1

EPERM: operation not permitted, stat

Posted: Fri Oct 29, 2021 10:02 am
by PdFUser5000
My script is trying to overwrite a file in the server, but gets the following error: EPERM: operation not permitted, stat'( filename + location)'

I have not had this error before and this only appears with one unique file. Other files in the same folder work fine.Nobody has the file open.
What could be the reason?

Re: EPERM: operation not permitted, stat

Posted: Fri Oct 29, 2021 1:19 pm
by freddyp
If it works well with all other files, what else can it be other than file access rights?

If your script crashes because of this and the script element goes into an error state, place the overwriting of the file inside a try-catch block and in the catch you can then query the stats of the file and log a message.