def _generate_sub_created_events_for(src_dir_path):
    for root, directories, filenames in os.walk(src_dir_path):
        for directory in directories:
            yield DirCreatedEvent(os.path.join(root, directory))
        for filename in filenames:
            yield FileCreatedEvent(os.path.join(root, filename))
Generates an event list of :class:`DirCreatedEvent` and :class:`FileCreatedEvent`
dataset/ETHPy150Open yildizberkay/MongoApp/libs/watchdog/observers/read_directory_changes.py/_generate_sub_created_events_for