/ Published in: Ruby
Expand |
Embed | Plain Text
list = Dir.entries(@fullpath2images) for l in list if /^plan_#{params[:id]}_(sm|big)_.*/ =~l File.delete(l) end end
You need to login to post a comment.
list = Dir.entries(@fullpath2images) for l in list if /^plan_#{params[:id]}_(sm|big)_.*/ =~l File.delete(l) end end
You need to login to post a comment.