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

Method toSystemPath

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

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

(String path)

Source from the content-addressed store, hash-verified

355 * @param path 路径
356 */
357 public static String toSystemPath(String path){
358 String systemPath = "";
359 if(path != null && !path.trim().isEmpty()){
360 return path.replace("/", File.separator);
361
362
363 }
364 return systemPath;
365 }
366
367 /**
368 * 左斜杆路径转为URL路径(如: file/a/b/转为file%2Fa%2Fb/) %2F为左斜杆的URL转义

Callers 15

copyResourceDirectoryMethod · 0.95
filePackMethod · 0.95
addThumbnailMethod · 0.95
deleteThumbnailMethod · 0.95
deleteTopicFileMethod · 0.95
deleteCommentFileMethod · 0.95
deleteQuestionFileMethod · 0.95
deleteAnswerFileMethod · 0.95
editLinkMethod · 0.95
deleteLinkMethod · 0.95
querySubdirectoryMethod · 0.95
editTopicMethod · 0.95

Calls 2

isEmptyMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected