Using dir with a url
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
J Travis Hunsucker
il 15 Ott 2018
Commentato: Walter Roberson
il 16 Ott 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.
0 Commenti
Risposta accettata
Walter Roberson
il 15 Ott 2018
dir() does not respect url, and considers them just to be paths to hand to the file system.
2 Commenti
Walter Roberson
il 16 Ott 2018
urlread and parse the results, or possibly use something from text analytics toolbox.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su File Operations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!