有关renameTo的方法

tele 2003-08-15 11:37:24
我在windows上有一个硬盘,利用smbmount把硬盘挂到linux的系统之上,我用file.renameTo移动文件的时候失败,返回false,但是可以建立目录,所以我觉得不是访问权限的问题,我在api中看到:Whether or not this method can move a file from one filesystem to another is platform-dependent.难道是与平台有关吗?
...全文
43 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
wyqiang 2003-08-15
  • 打赏
  • 举报
回复
对呀

62,614

社区成员

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

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