whops, needed string inter. here

This commit is contained in:
Bastian Greshake
2017-06-01 14:31:32 +02:00
parent 1d73188866
commit f931a7fd38

View File

@@ -261,7 +261,7 @@ TXT
def delete_old_zips
forbidden_files = [link_path, zip_fs_path,
Rails.root.join('data','annotation.zip'),
Rails.root.join('public','data','zip','#{dump_file_name}.zip')]
Rails.root.join('public','data','zip',"#{dump_file_name}.zip")]
Dir[Rails.root.join('public/data/zip/*.zip')].each do |f|
if (not forbidden_files.include? f) and (File.ftype(f) == "file")
File.delete(f)