Where could possibly disappear my files after using movefile()?

4 views (last 30 days)
I wanted to move my files to a directory called 'empty', which is inside of current directory with files. I used
movefile(strcat(list(n,1:22),'A02Z01C02.png'),'\empty')
And my files disappeared! I understand now, that should have used movefile(strcat(list(n,1:22),'A02Z01C02.png'),'empty'), instead, but where can I find my files now?
  5 Comments
Nirajan Luintel
Nirajan Luintel on 30 Mar 2018
Did you find the location of missing files? I tried using windows search but could not find anywhere.
Image Analyst
Image Analyst on 31 Mar 2018
Nirajan, start your own question and show your code. We don't know what you did and since we can't see your copyfile or movefile line of code, we don't know what your destination for the files is.

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 11 Dec 2017
Use the file finding capability of your operating system to find out where it got put. It looks like it should be in a folder called "empty" either off the root of the drive, or as a subfolder of what MATLAB considers the "current folder". But anyway, telling your OS to find A02Z01C02.png should find it.
  6 Comments
Maria Tikhomirova
Maria Tikhomirova on 12 Dec 2017
Although, I don't see how would it help me to find my files. The test file also disappeared. The recycle was on this time
Image Analyst
Image Analyst on 12 Dec 2017
So you used the full path, starting with the drive letter, had recycle on, and still did not find the destination file? So when you do
status = movefile(sourceFileName, destinationFileName)
what is status?
If status shows it worked, then I'd call tech support.

Sign in to comment.

Categories

Find more on File Operations in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!