Amended utils copy so that a warning is produced if a source file is not found in FILES_TO_COPY whilst copying. eg if there is a typo in the file name, or the file is moved.

This commit is contained in:
Brendan Wholihan 2012-10-20 16:35:24 +01:00
commit bc0f7ae4f6

View file

@ -92,7 +92,8 @@ def copy(path, source, destination, destination_path=None, overwrite=False):
elif os.path.isfile(source_):
shutil.copy(source_, destination_)
logger.info('copying %s to %s' % (source_, destination_))
else:
logger.warning('skipped copy %s to %s' % (source_, destination_))
def clean_output_dir(path):
"""Remove all the files from the output directory"""