When using the Export function of Photos with included modification ( not raw export ) the sync file is empty.
on_created(self=<watchdog.tricks.LoggerTrick object at 0x107ca2c50>, event=<FileCreatedEvent: src_path='./IMG_9894.jpg.exporting'>) on_modified(self=<watchdog.tricks.LoggerTrick object at 0x107ca2c50>, event=<DirModifiedEvent: src_path='.'>) on_moved(self=<watchdog.tricks.LoggerTrick object at 0x107ca2c50>, event=<FileMovedEvent: src_path='./IMG_9894.jpg.exporting', dest_path='./IMG_9894.jpg'>) looponux-2:Test loopingz$ watchmedo log . on_created(self=<watchdog.tricks.LoggerTrick object at 0x10be87c50>, event=<FileCreatedEvent: src_path='./Plop'>) on_modified(self=<watchdog.tricks.LoggerTrick object at 0x10be87c50>, event=<DirModifiedEvent: src_path='.'>) on_modified(self=<watchdog.tricks.LoggerTrick object at 0x10be87c50>, event=<FileModifiedEvent: src_path='./Plop'>) on_moved(self=<watchdog.tricks.LoggerTrick object at 0x10be87c50>, event=<FileMovedEvent: src_path='./Plop', dest_path='./Plop2'>) on_modified(self=<watchdog.tricks.LoggerTrick object at 0x10be87c50>, event=<DirModifiedEvent: src_path='.'>)
The events sent by MacOS don't include any FileModified as normally done with a simple
with open("/Users/loopingz/Tmp/Test/Plop", "w") as f: time.sleep(20) f.write("BOUZOUF") os.rename("/Users/loopingz/Tmp/Test/Plop", "/Users/loopingz/Tmp/Test/Plop2")