How do I access a folder whose name varies?
3 ビュー (過去 30 日間)
古いコメントを表示
I want to check that a folder exists whose name typically changes, as it is the date, followed by time, followed by a constant part.
I tried:
exist([pwd '\*constant'],'dir')
I know something like this works for files, but is there a way to handle this with folders? If anyone knows how to handle this, I'd appreciate it!
1 件のコメント
Akira Agata
2018 年 11 月 5 日
I believe isfolder function would be suitable for your task. Have you tried it?
回答 (1 件)
参考
カテゴリ
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!