in reply to Weird differing bsd_glob behavior

My random wild guess would be file/directory permissions. Maybe the user that Node-RED runs under does not have permissions to list files under one of the parent directories in the path given?

Replies are listed 'Best First'.
Re^2: Weird differing bsd_glob behavior
by hepcat72 (Sexton) on Jul 23, 2024 at 17:49 UTC
    Someone on stack had a similar hunch. Seems promising. MacOS has gotten more and more proactive about security and permissions... However, I just checked and the entire path to that file (including the file) is owned by me and in my group, with read permissions throughout - and the node-red process is running as me. Unless Apple is doing something funky... which I don't put past them at all.

      Me :)

      What's the output of

      perl -e'stat("/Users/robleach/Library/Group Containers/group.com.apple +.reminders/Container_v1/Stores") or die "stat: $!\n"; print "ok\n";'

      Update: Ah, you already said on SO that ls fails with Operation not permitted. This will do the same, and confirm a permission problem.