FTP listing infinite loop

I’m using the FTP node with listing operation and recursive set to true.
When there are no files in FTP space the Ftp node keeps running like an infinite loop.
I don’t know if it’s a bug

Hey @rahma_sayadi,

Is the FTP node the only node in your worklfow?

hello @Jon,
No, I have others.

@Jon I have the same issue.

If I’m right the issue comes from the listing which contains the folders “.” and “…”.
If recursivity is enabled then the “.” folder is proceed again and again.

Why not filter “.” and “…” from the list? Or at least make it optional.

Hey @juherr,

Welcome to the community :tada:

That is odd, I would have thought it was smart enough to automatically ignore the virtual folders. I have made a note to take a look at this more.

1 Like

Hey @juherr,

I have just given it a test and I am not able to reproduce this, In my test I have 2 files in the users home path, 1 empty folder called test and 4 empty folders nested /1/2/3/4.

What version of n8n are you using and which FTP server and version?


The FTP server I’m using is provided by my PaaS provider: File System Buckets | Clever Cloud Documentation

When I list:

Due to the issue, I’m not able to list in recursive mode.

Hey @juherr,

Ah that makes sense now, I will get a fix in place for that. It looks like it won’t be something that every FTP server does which is why I missed it.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

New version [email protected] got released which includes the GitHub PR 6707.

1 Like