java的File#renameTo(File)方法在Linux中移动文件失败
java的File#renameTo(File)方法与OS下面的 move/mv 命令是不相同的!!!!
引用:
In the Unix’esque O/S’s you cannot renameTo() across file systems. This behavior is different than the Unix “mv” command. When crossing file systems mv does a copy and delete which is what you’ll hav
原创
2020-09-21 16:34:08 ·
1325 阅读 ·
0 评论