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

Method normalize

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

获取当前系统格式化路径 windows下 D:/Hello../oo./h/World.txt 转为 D:\Hello..\oo.\h\World.txt @return

(String path)

Source from the content-addressed store, hash-verified

333 * @return
334 */
335 public static String normalize(String path){
336 return FilenameUtils.normalize(path);
337
338 }
339
340 /**
341 * 系统路径转为左斜杆路径(如: file/f/f/)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected