mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
fix(FTP Node): List recursive ignore . and .. to prevent infinite loops (#6707)
ignore . and .. to prevent infinite loop Co-authored-by: Michael Kret <michael.k@radency.com>
This commit is contained in:
parent
08331c63fb
commit
995d5cc470
|
@ -64,6 +64,10 @@ async function callRecursiveList(
|
|||
|
||||
// Is directory
|
||||
if (item.type === 'd') {
|
||||
// ignore . and .. to prevent infinite loop
|
||||
if (item.name === '.' || item.name === '..') {
|
||||
return;
|
||||
}
|
||||
pathArray.push(currentPath);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue