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

时间:2019-07-30 14:15:26   收藏:0   阅读:197
原因是rename  方法无法在mount 点使用。
oldpath and newpath are not on the same mounted filesystem. (Linux permits a filesystem to be mounted at multiple points, but rename() does not work across different mount points, even if the same filesystem is mounted on both.)


一般是使用拷贝,然后删除源文件方法解决。



原文:https://www.cnblogs.com/mu-zhang/p/11269467.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!