MCPcopy Create free account
hub / github.com/diyhi/bbs / formatPath

Method formatPath

src/main/java/cms/utils/ZipUtil.java:397–401  ·  view source on GitHub ↗
(String path)

Source from the content-addressed store, hash-verified

395 }
396 }
397 private static String formatPath(String path){
398 path=path.replace('\\', File.separatorChar);
399 path=path.replace('/', File.separatorChar);
400 return path;
401 }
402 private static void mkdirsForFile(String filePath){
403 String absPath=filePath;
404 String tmpPath=absPath.substring(0,absPath.lastIndexOf(File.separator));

Callers 1

unZipMethod · 0.95

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected