parameters: (options, deps)
docstring: Copy files or directories given in options.files and update deps.
docstring_summary: Copy files or directories given in options.files and update deps.
docstring_tokens: Copy files or directories given in options . files and update deps .
function: def DoCopy(options, deps):
    """Copy files or directories given in options.files and update deps."""
    files = list(itertools.chain.from_iterable(build_utils.ParseGypList(f)
                                               for f in options.files))
  
    for f in files:
      if os.path.isdir(f) and not options.clear:
        print ('To avoid stale files you must use --clear when copying '
               'directories')
        sys.exit(-1)
      CopyFile(f, options.dest, deps)
function_tokens: def DoCopy ( options , deps ) : files = list ( itertools . chain . from_iterable ( build_utils . ParseGypList ( f ) for f in options . files ) ) for f in files : if os . path . isdir ( f ) and not options . clear : print ( 'To avoid stale files you must use --clear when copying ' 'directories' ) sys . exit ( - 1 ) CopyFile ( f , options . dest , deps )