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.

采纳的回答

Walter Roberson
Walter Roberson 2018-10-15
dir() does not respect url, and considers them just to be paths to hand to the file system.
  2 个评论
J Travis Hunsucker
J Travis Hunsucker 2018-10-15
Thank you for the response. Do you know of another way to query the contents of a url directory?
Walter Roberson
Walter Roberson 2018-10-16
urlread and parse the results, or possibly use something from text analytics toolbox.

请先登录,再进行评论。

更多回答(0 个)

类别

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