dongsui3297
dongsui3297
2017-01-25 12:02

将文件夹从一个本地磁盘移动到另一个

已采纳

To move folder "aze" to folder "log" and rename it "qsd" in the same local disk, I used :

rename("rename/aze", "D:/log/qsd");

But When I try to move to "C:/test/uploads/qsd" It doesn't work :

rename("rename/aze", "C:/test/uploads/qsd");

My server is in "D" disk.

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答

  • douchen1988 douchen1988 4年前

    It looks like it's not possible, so I copy the folder in the destination path and then, delete it in the source path.

    点赞 评论 复制链接分享