Possible data loss in transit using movefile

2 Ansichten (letzte 30 Tage)
Ben Mercer
Ben Mercer am 10 Apr. 2018
Bearbeitet: YT am 10 Apr. 2018
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 Kommentar
YT
YT am 10 Apr. 2018
Bearbeitet: YT am 10 Apr. 2018
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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by