Using dir with a url
조회 수: 3 (최근 30일)
이전 댓글 표시
Hello all, I am trying to list the contents in a folder using a url. I would like to see all the files in a specified url directory. See below for an example file:
url='http://test.opendap.org/dap/data/nc/'; dir(url)
I keep getting an error for no matches. Any help is greatly appreciated. Thank you.
댓글 수: 0
채택된 답변
Walter Roberson
2018년 10월 15일
dir() does not respect url, and considers them just to be paths to hand to the file system.
댓글 수: 2
Walter Roberson
2018년 10월 16일
urlread and parse the results, or possibly use something from text analytics toolbox.
추가 답변 (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!