c++ 调用rename 报错 Invalid cross-device link error

末蓝、 2023-06-03 15:58 59阅读 0赞
  1. 原因是rename 方法无法在mount 点使用。
  2. oldpath and newpath are not on the same mounted filesystem. (Linux permits a filesystem to be mounted at multiple
  3. points, but rename() does not work across different mount points, even if the same filesystem is mounted on both.)
  4. 一般是使用拷贝,然后删除源文件方法解决。

转载于:https://www.cnblogs.com/mu-zhang/p/11269467.html

发表评论

表情:
评论列表 (有 0 条评论,59人围观)

还没有评论,来说两句吧...

相关阅读