From 63e2f0c0c271ad900053527626ffd05102c4c651 Mon Sep 17 00:00:00 2001 From: gc Date: Sun, 3 Jul 2005 16:10:58 +0000 Subject: [PATCH] don't cleanup files that actually are albums thumbnails --- bin/booh-backend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/booh-backend b/bin/booh-backend index 94e7b44..0cd2f97 100755 --- a/bin/booh-backend +++ b/bin/booh-backend @@ -674,7 +674,7 @@ def walk_source_dir concat(thumbnail_images.collect { |e| e[1] }.flatten). concat(thumbnail_videos.collect { |e| e[1] }.flatten). concat(videos) - to_del = Dir.entries(dest_dir).find_all { |e| !File.directory?("#{dest_dir}/#{e}") && !all_elements.include?(e) } - themestuff + to_del = Dir.entries(dest_dir).find_all { |e| !File.directory?("#{dest_dir}/#{e}") && !all_elements.include?(e) && e !~ /^thumbnails-\w+\.jpg/ } - themestuff system("rm -f " + to_del.collect { |e| "#{dest_dir}/#{e}" }.join(' ')) #- copy any resource file that goes with the theme (css, images..) -- 2.30.4