Python script to check if file or directory exist

Опубликовано: 04 Апрель 2026
на канале: Prashant Lakhera
4,930
43

1: Python script to check if file or directory exists
2: Use of open(), os.path.exists() and os.path.isfile() and os.path.isdir()
3: Use of pathlib module


Doc: https://www.101daysofdevops.com/cours...


Course Registration link: https://www.101daysofdevops.com/regis...


OS Module Video link:


   • Python OS Module - Part 1  

   • Python OS Module - Part 2  


To join the DevOps course: https://www.101daysofdevops.com/regis... (Please register using the link)



Please join me with my journey by following any of the below links

Website: https://101daysofdevops.com/
Twitter: @100daysofdevops OR @lakhera2015
Facebook:   / 795382630808645  
Medium:   / devopslearning  
GitHub: https://github.com/100daysofdevops/10...
Slack: https://join.slack.com/t/100daysofdev...
YouTube Channel: https://www.youtube.com/user/laprasha...