Help with Simple Directory Operations
1 回表示 (過去 30 日間)
古いコメントを表示
Hello,
I have a simple question. I want to first check to see if a folder exists in the working directory. If not, then I create it. I got this part to work.
But now I want to add a second check outside the above check to see if the folder is empty. What is the easiest way todo the last check ?
Thank you!
0 件のコメント
採用された回答
その他の回答 (2 件)
Jan
2013 年 3 月 21 日
if exist(fullfile(cd, 'FolderName'), 'dir') == 0
mkdir(cd, 'FolderName');
end
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で File Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!