当前位置: 技术问答>java相关
如何得到一个目录的大小?(来者有分)
来源: 互联网 发布时间:2015-02-09
本文导语: | 给分吧,代码如下: --------------------------------------------------------------- import java.net.*; import java.io.*; import java.util.*; /** * Shows the size of a file system directory/folder. */ public class FolderSize { pub...
|
给分吧,代码如下:
---------------------------------------------------------------
import java.net.*;
import java.io.*;
import java.util.*;
/**
* Shows the size of a file system directory/folder.
*/
public class FolderSize
{
public static void main(String args[]) throws Exception
{
if (args.length
---------------------------------------------------------------
import java.net.*;
import java.io.*;
import java.util.*;
/**
* Shows the size of a file system directory/folder.
*/
public class FolderSize
{
public static void main(String args[]) throws Exception
{
if (args.length