文件的属性读取:
exists
isFile
isDirectory
createNewFile
delete
renameTo文件夹处于同一个分区
getName
getPath相对路径
getAbsolutePath绝对路径
getParent
lehgth()
isHidden()
canRead()
canWrite()
isDirectory()
文件设置:
setWritable()
setReadable()
setReadonly()
遍历文件夹:
if(file.isDirctory){File next[] = file.listFiles();}