once file appears in watch directory,wait for the close event for inotifywait to signal the copy has been completed