zoukankan
html css js c++ java
java文件上传判断文件夹是否存在
判断文件夹是否存在,不存在创建文件夹
File file =
new File(
"E:/workspace/net/src/main/webapp/upload");
//如果文件夹不存在则创建
if (!file .exists() && !file .isDirectory())
{
System.out.println(
"//不存在");
file .mkdir();
}
else
{
System.out.println(
"//目录存在");
}
查看全文
相关阅读:
day006 数字类型和字符串类型的内置方法
awk技巧 nginx access.log
测试访问速度
ELK Deployed
jenkins权限控制
linux 系统优化
nginx 刷新显示404
虚拟机安装的ubutun全屏
在线生成二维码
GIT 命令集
原文地址:https://www.cnblogs.com/sanhao/p/8404471.html
最新文章
动态调用WebService
使用java程序作为celery的工作节点
airflow使用SimpleHttpOperator实现http调用任务
mgo操作mongodb
System.nanoTime()和System.currentTimeMillis()性能问题
Airflow: TypeError can't pickle memoryview objects
Airflow:TypeError an integer is required (got type NoneType) 一次诡异问题排查
rabbitmq+haproxy+keepalived高可用集群环境搭建
rabbitmqctl: Error unable to connect to node 'rabbit@xxxxx' nodedown
gemfire基本使用以及spring-data-gemfire的使用
热门文章
用代码触发testng实现并发测试
装饰器及进阶
生成器和迭代器
文件操作
基础数据类型
猜年龄游戏二阶段(循环嵌套)
day009 文件操作
day008 字符编码之 字符编码 、Python2和Python3字符编码的区别
python 九期学习大纲
day007 列表类型、元祖类型、 字典类型、 集合类型的内置方法
Copyright © 2011-2022 走看看