fix(filesystem): fix infinite loop on synchronous file scan
fix(filesystem): fix infinite loop on synchronous file scan: a task in Trending-SWE1.0 (Harbor dataset). Title: fix(filesystem): fix infinite loop on synchronous file scan
The task
**Title:** fix(filesystem): fix infinite loop on synchronous file scan
Part of scalingX/Trending-SWE1.0.