lib/echi-converter.rb in echi-converter-0.0.4 vs lib/echi-converter.rb in echi-converter-0.0.5

- old
+ new

@@ -153,11 +153,11 @@ end @log.debug '<====================STOP RECORD====================>' @binary_file.close #Move the file to the processed directory - destination_directory = @workingdirectory + '/../files/processed/' + destination_directory = @workingdirectory + '/../files/processed/' + filename FileUtils.mv(echi_file, destination_directory) if @config["echi_process_log"] == "Y" #Finish logging the details on the file echi_log.records = record_cnt @@ -270,9 +270,13 @@ echi_record.save @log.debug '<====================STOP RECORD====================>' record_cnt += 1 end end + + #Move the file to the processed directory + destination_directory = @workingdirectory + '/../files/processed/' + filename + FileUtils.mv(echi_file, destination_directory) if @config["echi_process_log"] == "Y" #Finish logging the details on the file echi_log.records = record_cnt echi_log.processed_at = Time.now