#NEWLINE# def _generate_sub_created_events_for( src_dir_path ) : #NEWLINE# #INDENT# 'Generates an event list of :class:`DirCreatedEvent` and :class:`FileCreatedEvent`\n    objects for all the files and directories within the given moved directory\n    that were moved along with the directory.\n\n    :param src_dir_path:\n        The source path of the created directory.\n    :returns:\n        An iterable of file system events of type :class:`DirCreatedEvent` and\n        :class:`FileCreatedEvent`.\n    ' #NEWLINE# for ( root , directories , filenames ) in os . walk ( src_dir_path ) : #NEWLINE# #INDENT# for directory in directories : #NEWLINE# #INDENT# ( yield DirCreatedEvent ( os . path . join ( root , directory ) ) ) #NEWLINE# #UNINDENT# for filename in filenames : #NEWLINE# #INDENT# ( yield FileCreatedEvent ( os . path . join ( root , filename ) ) )