Using dir with a url

3 Ansichten (letzte 30 Tage)
J Travis Hunsucker
J Travis Hunsucker am 15 Okt. 2018
Kommentiert: Walter Roberson am 16 Okt. 2018
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.

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu File Operations finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by