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

Method toLeftSlant

src/main/java/cms/utils/FileUtil.java:344–352  ·  view source on GitHub ↗

系统路径转为左斜杆路径(如: file/f/f/) @param path 路径

(String path)

Source from the content-addressed store, hash-verified

342 * @param path 路径
343 */
344 public static String toLeftSlant(String path){
345 String systemPath = "";
346 if(path != null && !path.trim().isEmpty()){
347 return path.replace(File.separator,"/");
348
349
350 }
351 return systemPath;
352 }
353 /**
354 * 左斜杆路径转为系统路径(如: file/f/f/)
355 * @param path 路径

Callers 2

copyResourceDirectoryMethod · 0.95
querySubdirectoryListMethod · 0.95

Calls 2

isEmptyMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected