MCPcopy Create free account
hub / github.com/SummerSec/SPATool / save

Method save

src/main/java/com/sumsec/core/ast/util/ASTSave.java:19–32  ·  view source on GitHub ↗
(String[] filePath, String destPath)

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 1

copyFileMethod · 0.80

Tested by

no test coverage detected