E:/AutoTHCN/lib/report/generate_report/web14/20190516/LoanTool.636936123857869205_190516_140514.xlsx file_name = File.basename(file, '.*')puts "file_name1的........................#{file_name}"file_name = file_name.sub(/_\d+_\d+/, '')puts "file_name2的........................#{file_name}"
ext = File.extname(file) puts "ext的........................#{ext}"
.xlsx
file_modify_time = File.mtime(file).to_iputs "file_modify_time的........................#{file_modify_time}"