code: def copy_files(src_dir, dst_dir, filespec='*', recursive=False):
      
      import os
      from .modules import copyfiles
  
      if src_dir == dst_dir:
          raise RuntimeError('copy_files() src and dst directories must be different.')
  
      if not os.path.isdir(src_dir):
          raise RuntimeError('copy_files() src directory "{}" does not exist.'.format(src_dir))
  
      return {
          'dependencies_fn': copyfiles.list_files,
          'compiler_fn': copyfiles.copy_files,
          'input': src_dir,
          'output': dst_dir,
          'kwargs': {
              'filespec': filespec,
              'recursive': recursive,
          },
      }
docs: Copies any files matching filespec from src_dir into dst_dir.
  
      If `recursive` is `True`, also copies any matching directories.