纯Java是无解的,除非你想使用JNI,不过我找到一个类库叫做 JConfig,它有段话说
Files: Enumerate the user's disk drives, and obtain extended information on
files, directories, volumes, and filesystems: their icons, creation dates,
version information, mount points, and much more...
Down下来试试吧,我就懒得去下载测试了。
http://www.tolstoy.com/samizdat/jconfig.html