stacklit icon indicating copy to clipboard operation
stacklit copied to clipboard

Handle symlinks gracefully

Open thegdsks opened this issue 7 months ago • 1 comments

When a project has symlinks in the source tree, stacklit follows them and can end up scanning the same files twice or hitting circular references. Should detect symlinks and either skip them or resolve them to avoid duplicate entries in the output.

thegdsks avatar Apr 16 '26 04:04 thegdsks

Fixed in #38. The walker no longer follows directory symlinks, so loops cannot happen, and it skips broken links, links that resolve outside the root, and special files like FIFOs. An unreadable entry is skipped instead of stopping the scan. Checked on the merged build with a symlink loop, a broken link and a link to /etc.

thegdsks avatar Nov 08 '26 19:11 thegdsks