…page_bonus.txtpage_code1.txtpage_code2.txtpage_text1.txtpage_text2.txtpage_text3.txt…
如何删除所有page_code *文件?注意:我不想使用FileUtils或shell
Dir::glob
Dir.glob('/home/your_username/Documents/page_code?.txt').each { |file| File.delete(file)}