1
0
Fork 0
forked from github/pelican

Removing utils.file_exists and replacing with os.path.isfile

This commit is contained in:
Will Dowling 2013-03-25 10:45:43 +00:00
commit 608e398386
2 changed files with 2 additions and 10 deletions

View file

@ -268,14 +268,6 @@ def copy(path, source, destination, destination_path=None, overwrite=False):
logger.warning('skipped copy %s to %s' % (source_, destination_))
def file_exists(path):
"""Checks path exists and is a file
:param path: the path to be checked
"""
return os.path.exists(path) and os.path.isfile(path)
def clean_output_dir(path):
"""Remove all the files from the output directory"""