Possible data loss in transit using movefile

1 回表示 (過去 30 日間)
Ben Mercer
Ben Mercer 2018 年 4 月 10 日
編集済み: YT 2018 年 4 月 10 日
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 Center および File ExchangeStartup and Shutdown についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by