java File类的问题?

lian2002 2002-03-25 02:10:15
比如我用File类对象进行了delete()操作删除了一个文件,然后怎样刷新目录?
...全文
51 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
GJA106 2002-03-25
  • 打赏
  • 举报
回复
好象没有刷新目录的API。
snowredfox 2002-03-25
  • 打赏
  • 举报
回复
Deletes the file or directory denoted by this abstract pathname. If this pathname denotes a directory, then the directory must be empty in order to be deleted.
Returns:
true if and only if the file or directory is successfully deleted; false otherwise

删除了就删除了贝,为啥还要刷新,刷新是系统的事情啦

23,407

社区成员

发帖
与我相关
我的任务
社区描述
Java 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧