How to compare contents of folders, check for missing files?
13 views (last 30 days)
Louise Wilson on 2 Oct 2019
I have a folder of files, which contains .sud files and .wav files. The .wav files are decompressed .sud files and should be equal in number, however, I can see from checking the length of each of these that there is one less .wav file. It looks like one hasn't been processed and I'd like to know which one it is. How can I do this? I've put the filenames in two columns of an array and the empty cell looks like [ ].
Here is my code so far:
d=dir(fullfile(folder, '*.wav')); %list all .wav files in path folder
e=dir(fullfile(folder, '*.sud')); %list all .sud files
%wavs in first column
for i=1:wavfiles %get filename only (remove prefix and suffix)
%suds in second column