samplePath = '.\ALLSquare_sample_sift';
dataPath = '.\ALLSquare_sift';
fileList = dir(samplePath);
for k = 3 : length(fileList)
delete([dataPath,'\',fileList(k).name])
end
Matlab删除一文件夹中与另一文件夹相同的文件
最新推荐文章于 2022-04-20 13:29:14 发布
samplePath = '.\ALLSquare_sample_sift';
dataPath = '.\ALLSquare_sift';
fileList = dir(samplePath);
for k = 3 : length(fileList)
delete([dataPath,'\',fileList(k).name])
end