App Designer - recover an overwritten app

8 次查看(过去 30 天)
While working on two of my apps last night, I accidentally overwrote one of them with another. I didn't notice it until this morning when I opened both apps and the same app opened. Whatsmore, the app that was overwritten took at least 5 days of work, while the app that remained took like 2 hours. Is there a way to restore an overwritten app?
  7 个评论
Aleksandar Ritan
Aleksandar Ritan 2021-2-11
@Adam Danz I've set up Dropbox and it's perfect for this project. There's one problem I'm having though. Matlab can't delete temporary folders created inside the Dropbox folder, nor can I save files from within matlab to the dropbox folder. How can I give Matlab the permission to modify the Dropbox folder?
Adam Danz
Adam Danz 2021-2-11
Crap.... now that you meniton it, I do recall these problems between Matlab and Dropbox.
Temp folders
What function is creating the temporary folders? Usually temporary folders and files don't need backed up and can be stored on your local disk. Matlab's tempdir function returns the name of temporary dir Matlab uses (see how to change temp dir). Mine is 'C:\Users\name\AppData\Local\Temp\'.
Saving files
Saving files to the dropbox folder is a bigger issue. I don't have dropbox on the machine I've been using lately so I can't test it.
Workarounds
Well, you could try a different cloud service. I've used OneDrive and GoogleCloud but I forget if they offer version control. I also use redundent backup services on a server and on a hard drive. GitHub is a main player in version control, too.
I found this Tweet (first time I've used twitter to reference Matlab advice) suggesting to toggle the Dropbox syncing state when using Matlab and now I recall that this is what I did as well. Pro: it solves the problem. Con: If wont' backup your files until you turn the sync back on.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 File Name Construction 的更多信息

标签

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by