Skip to content
Browse files
Fix #2566 -- remove unusual scale_images ignores

* SVN is basically dead, and the ignore isn’t necessary for modern
versions anyway. (Fixed in 2011)
* .DS_Store and Thumbs.db are not going to be considered image files
due to their extensions anyways.
  • Loading branch information
Kwpolska committed Nov 24, 2016
1 parent 74ae976 commit 98d3ba3954ac30f82e096e1b2469a94078a414bc
Showing 1 changed file with 0 additions and 5 deletions.
@@ -46,17 +46,12 @@ def set_site(self, site):
def process_tree(self, src, dst):
"""Process all images in a src tree and put the (possibly) rescaled images in the dst folder."""
thumb_fmt =['image_thumbnail_format']
ignore = set(['.svn'])
base_len = len(src.split(os.sep))
for root, dirs, files in os.walk(src, followlinks=True):
root_parts = root.split(os.sep)
if set(root_parts) & ignore:
dst_dir = os.path.join(dst, *root_parts[base_len:])
for src_name in files:
if src_name in ('.DS_Store', 'Thumbs.db'):
if (not src_name.lower().endswith(tuple(self.image_ext_list)) and not src_name.upper().endswith(tuple(self.image_ext_list))):
dst_file = os.path.join(dst_dir, src_name)

0 comments on commit 98d3ba3

Please sign in to comment.