I want to monitor a network drive path and detect any new directory copied there or not and then automatically copy that whole directory to my local drive.
I have the following things in mind:
create a python script which can maintain the no of files in the network drive path and save it to local temp file.
I will run my script every 2/3 Hrs and compare the current number of directories with the last count. If the current number is more than the previous number, simply copy those directories and paste to local directory. By this simple way I can find out there are any new directories or not, correct?
But, I was wondering if there is any other better method or powerful library present in python so that I can just easily detect newly copied directory in a network path.