package com.tydic.eshop.action.freemarker;

public class DDDDD {
    /**
     * @Title: main 
     * @Description: 获取文件绝对路径最后的文件夹名称
     * @param @param args    设定文件 
     * @return void    返回类型 
     * @throws
     */
    public static void main(String[] args) {
        String strParentUrl = "E:\\hh_web_space\\ecp\\web\\ecp_web_page\\src\\main\\webapp\\upload\\1462591962047\\error";
        String[] s = strParentUrl.split("\\\\");
        String FolderName = s[s.length-1];
        System.out.println(FolderName);
    }
}
获取文件绝对路径最后的文件夹名称

相关文章:

  • 2022-12-23
  • 2022-03-09
  • 2021-09-22
  • 2021-07-12
  • 2022-12-23
  • 2021-06-18
猜你喜欢
  • 2022-12-23
  • 2022-02-11
  • 2021-11-09
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案