判断文件存在

Posted on 2015-06-26 09:32  小小蜗牛灬  阅读(161)  评论(0编辑  收藏  举报
	myRecVideoFile = new File(fileName);
	if(!myRecVideoFile.exists()){
		myRecVideoFile.getParentFile().mkdirs();
		myRecVideoFile.createNewFile();
	}

Copyright © 2024 小小蜗牛灬
Powered by .NET 8.0 on Kubernetes