Skip symlinks when scanning files and directories#24
Conversation
Added a check to skip symbolic links during file scanning to prevent double counting and potential infinite loops.
⸜(。˃ ᵕ ˂ )⸝♡ Thank you for opening this Pull Request, AzisK!( ˶°ㅁ°) !! It's Trivia Time!Here are 3 trivia questions to keep you entertained while CI runs. 🧩 Q1: What is the weight of a Gold Bar in Fallout: New Vegas?A) 30 Pounds 🧩 Q2: If someone said "you are olid", what would they mean?A) You are out of shape/weak. 🧩 Q3: What is the name given to layer 4 of the Open Systems Interconnection (ISO) model?A) Transport
|
|
This pull request is concise, and it introduces a critical enhancement to the existing code by handling symbolic links correctly to prevent double counting and infinite loops during file and directory scans. Let's dive into the review: Positives and Applause:
Suggestions for Improvement:
Summary:This is an excellent pull request! The code change is clear, concise, and effectively solves the outlined problem. The use of Python's 's is a great choice for readability and maintainability. To take this new functionality a step further, consider the suggestions related to testing, logging, and documentation updates, which will ensure robustness, transparency, and clarity for future collaborators. Awesome work—keep it up! The care you’ve shown in identifying and handling edge cases, such as symlinks, adds immense quality to the project, making it more reliable for end users. Stellar effort! 🚀 |

Added a check to skip symbolic links during file scanning to prevent double counting and potential infinite loops.