forked from github/pelican
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:
parent
41b93f3dcc
commit
bc0f7ae4f6
1 changed files with 2 additions and 1 deletions
|
|
@ -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"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue