How do I access a folder whose name varies?

조회 수: 6 (최근 30일)
Emmanuel Akindele
Emmanuel Akindele 2018년 11월 4일
답변: Prakhar Jain 2018년 11월 12일
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
Akira Agata 2018년 11월 5일
I believe isfolder function would be suitable for your task. Have you tried it?

댓글을 달려면 로그인하십시오.

답변 (1개)

Prakhar Jain
Prakhar Jain 2018년 11월 12일
Hi Emmanuel,
I guess exist works for folder also. Follow the link and look at point no. 7. Thanks.

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by