Possible data loss in transit using movefile

2 次查看(过去 30 天)
I am using the inbuilt function movefile to move a folder containing data files to another directory. movefile encountered an error "Unknown error occurred.", however I believe the error was due to some of the files having too long names.
When I inspected the source and destination folders, some of the data from the source folder was now missing from both the source and destination folders. Has anyone else experienced similar behavior?
If it is possible for movefile to irrecoverably loses data in transit when it encounters an error, I'd suggest this needs to be patched.
Thanks,
Ben
  1 个评论
YT
YT 2018-4-10
编辑:YT 2018-4-10
I also had some trouble with moving files a while back because I had too long file names/paths. While it's not really a solution, I just renamed/shortened the filenames (and thus path) which seemed to work for me.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by