Java File 类

Java File 类

创建

操作

  • delete 不会回收到回收站, 为空时才能删

  • createFile 如果父级路径不存在, 会抛异常; 有返回值表示创建成功或失败