Using dir with a url
4 次查看(过去 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!