List files alternative in n8n 2.x

Hey guys

I used an “Execute Command” node with the following command:

find /data/inbox -maxdepth 1 -type f -name “*.pdf”

The execute command option was removed in version 2.0. Is there another way to get files from a folder?

Background: I need to grab individual PDF files from that folder for a PDF OCR/renaming automation process.

Kind regards,

Ovrld

The Execute Command Node was not removed with version 2.0, but deactivated by default.
You can set the environment variable NODES_EXCLUDE="[]" if you want to make all nodes active back again.

1 Like

Sure - in the end this is my last option. But I try to find another “best practise” for this case. But thank you :slight_smile:

@shaurya_goel

Thank you too - I will test this tomorrow

1 Like