mod/core/set/all/trash.rb in card-1.101.7 vs mod/core/set/all/trash.rb in card-1.102.0

- old
+ new

@@ -28,14 +28,14 @@ dir = Cardio.paths["files"].existent.first # TODO: handle cloud files return unless dir (all_trashed_card_ids & all_file_ids).each do |file_id| - delete_files_with_id file_id + delete_files_with_id dir, file_id end end - def delete_files_with_id file_id + def delete_files_with_id dir, file_id raise Card::Error, t(:core_exception_almost_deleted) if Card.exists?(file_id) ::FileUtils.rm_rf "#{dir}/#{file_id}", secure: true end