Lua 从全路径中获得文件名的方法(Linux Win)
fn_flag = string.find(filename, "\\")
if fn_flag then
dest_filename = string.match(filename, ".+\\([^\\]*%.%w+)$")
end
fn_flag = string.find(filename, "/")
if fn_flag then
dest_filename = string.match(filename, ".+/([^/]*%.%w+)$")

浙公网安备 33010602011771号