Ruby的Dir.glob(‘/your/absolute/path/*‘)有缓存bug,新文件并不会返回,改成FileUtils.chdir后在Dir.glob(pattern)解决