Also- in my experience so far, LLMs do a far better job of accounting for things like this than I do.
For example I had claude 4 write something to recursive search the whole filesystem on a windows 11 machine and included a few checks for windows 11 file system specific things I wasnt aware of
Taking into account that the file may not exist or error half way?
Taking care that your buffer doesn’t overflow or simply eat all your available ram?
Do you only work with trusted inputs?