What is Nostr?
Ben Ramsey /
npub1uef…js23
2023-08-26 18:08:33

Ben Ramsey on Nostr: I can get PHP’s RecursiveDirectoryIterator working by passing it to ...

I can get PHP’s RecursiveDirectoryIterator working by passing it to RecursiveIteratorIterator and looping over it, like here: https://3v4l.org/ll176

But I can’t seem to figure out how to get this working with RecursiveCallbackFilterIterator. From my understanding, this should have the same output as the example above, but it’s not even looping because $contents->valid() is returning false. https://3v4l.org/MM7kZ

What am I doing wrong?
Author Public Key
npub1uef7kc9jmd0dlyrdx4xzsfdlqz5qm743k9mxektcq524ar7vpkesrejs23