Fixed typo, changed os.path.isfile to isfile for consistency

This commit is contained in:
Alexandre Chataignon
2017-03-03 15:48:36 +01:00
parent fde26ec8de
commit d4857ffd3f
2 changed files with 3 additions and 3 deletions

View File

@@ -102,7 +102,7 @@ class Media(UnicodeMixin):
orig_path = join(s['destination'], self.path, s['orig_dir'])
check_or_create_dir(orig_path)
big_path = join(orig_path, self.src_filename)
if not os.path.isfile(big_path):
if not isfile(big_path):
copy(self.src_path, big_path,
symlink=s['orig_link'])
return url_from_path(join(s['orig_dir'], self.src_filename))
@@ -111,7 +111,7 @@ class Media(UnicodeMixin):
def thumbnail(self):
"""Path to the thumbnail image (relative to the album directory)."""
if not os.path.isfile(self.thumb_path):
if not isfile(self.thumb_path):
# if thumbnail is missing (if settings['make_thumbs'] is False)
if self.type == 'image':
generator = image.generate_thumbnail

View File

@@ -187,7 +187,7 @@ ignore_files = []
# contain all resized or original files (depending on `zip_media_format`).
# zip_gallery = False # False or 'archive.zip'
# zip_media_format = 'resized' # 'resized' or 'orig'
# zip_skip_if_exists = false # Skip archive generation if archive is already present. Warning: new photos in an album won't be added to archive
# zip_skip_if_exists = False # Skip archive generation if archive is already present. Warning: new photos in an album won't be added to archive
# Specify a different locale. If set to '', the default locale is used.
# locale = ''