How can I know if a file or a directory exists or not?

Thank you!

Best Regards,

Kevin Shen