from shutil import copyfile
import time

while(True):
    try:
        copyfile("/root/Intelligent-IoT-Smart-Building-Security/Intelligent-IoT-Smart-Building-Security/recordSensorsFile", "/root/Intelligent-IoT-Smart-Building-Security/Intelligent-IoT-Smart-Building-Security/newRecords")
        time.sleep(15)
    except expression as identifier:
        pass
    