(String[] filePath, String destPath)
| 17 | private static Logger log = LogManager.getLogger(ASTSave.class); |
| 18 | |
| 19 | public boolean save(String[] filePath, String destPath) { |
| 20 | log.info("save destPath: " + destPath); |
| 21 | for (String path : filePath) { |
| 22 | log.info("save path: " + path + " to " + destPath); |
| 23 | try { |
| 24 | FileUtil.copyFile(path, destPath); |
| 25 | }catch (Exception e){ |
| 26 | log.error("save error: " + e.getMessage()); |
| 27 | return false; |
| 28 | } |
| 29 | log.info("save success"); |
| 30 | } |
| 31 | return true; |
| 32 | } |
| 33 | } |