Answered step by step
Verified Expert Solution
Question
1 Approved Answer
python Very frequently there is a need to monitor a presence of a file in some directory, this maybe needed for: Automated deployment jobs -
python
Very frequently there is a need to monitor a presence of a file in some directory, this maybe needed for:
- Automated deployment jobs - every time a new bundle is uploaded, deploy it
- Synch processes - there are multiple clustered servers, and they need to have same files on them
- Error file - if file is ever present, then there is an error - send an email
write a program that will take a command line argument of full path and prints True if the file/directory at the provided location is present and False if it doesn't Change program such that it runs indefinitely, monitoring a file/directory at a certain location and if the file disappears, then the program should print "Alert"
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started