Hello,
I have this following code for choosing a folder then deleting some files in specific size
files = fullfile(matlabroot, '\toolbox');if ~exist(files, 'dir') files = matlabroot;enduiwait(msgbox('Pick a folder on the next window that will come up.'));selpath = uigetdir(files);if selpath == 0 return;endunzip(selpath)files = dir(selpath);deletedfiles = 0;for itr = 1:length(files) if files(itr).bytes<200000 && ~files(itr).isdir files.name delete(fullfile(files(itr).folder, files(itr).name)) deletedfiles=deletedfiles+1; endenddeletedfiles
But i got error in the unziping part.
>> cobacobaError using parseUnArchiveInputs (line 76)ZIPFILENAME "D:\Nenen" is a directory.Error in unzip (line 55)[zipFilename, outputDir, url, urlFilename] = parseUnArchiveInputs( ...Error in cobacoba (line 10)unzip(selpath)
Any ideas what should I do?
Best Answer