def _copy_files(source, target):
source_files = listdir(source)<EOL>if not exists(target):<EOL><INDENT>makedirs(target)<EOL><DEDENT>for filename in source_files:<EOL><INDENT>full_filename = join(source, filename)<EOL>if isfile(full_filename):<EOL><INDENT>shutil.copy(full_filename, target)<EOL><DEDENT><DEDENT>
Copy all the files in source directory to target.

Ignores subdirectories.