public long checkSpace(){
String path = System.getProperty("user.dir");
System.out.println("path=="+path);
File file = new File(path);
long freeSpace = file.getFreeSpace();
long diskSpace = freeSpace / 1024 / 1024/1024;
return diskSpace;
}
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交