Concept Flow - Checking file existence and stats
Start
Call fs.stat(path)
Does file exist?
Yes No
Get stats
Use stats
End
This flow shows how Node.js checks if a file exists by calling fs.stat, then either gets file stats or handles the error if the file is missing.