怎样在WebServer的根目录下创建目录(用相对路径)

来源:互联网 发布:邮轮官网软件 编辑:程序博客网 时间:2024/05/16 08:35
String sPath = request.getRealPath("/") ; //来得到WebServer的根目录的绝对路径
//然后:
String pathname=sPath+"upload";
File file=new File(pathname);
file.mkdir();
原创粉丝点击