How do I access a folder whose name varies?
1 次查看(过去 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!