从路径中获取文件名
String getLastDirInPath(String path) { List<String> list = path.split("/"); return path.replaceAll(list[list.length - 1], ""); }