Commit e5f952e1 authored by David Boddie's avatar David Boddie
Browse files

Make file copying less verbose

parent dcfef043
Pipeline #48888 passed with stage
in 1 minute and 12 seconds
......@@ -55,10 +55,11 @@ def copy_files(src, dest, html_dir):
print('Creating', new_dir)
os.mkdir(new_dir)
print('Copying', src, 'to', new_dir)
for path in glob.glob(src):
file_name = os.path.split(path)[1]
dest_path = os.path.join(new_dir, file_name)
print('Copying', path, 'to', dest_path)
shutil.copy2(path, dest_path)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment