Is there a version of dir that takes a path?
Mostra commenti meno recenti
I want to use `dir` to get some list of files. But to do this I need to cd into a directory which seems really dum. Is there not a version of dir that just takes a path? i.e. something like:
dir('~/cool/path/files_*')
this way I specify the path and only the files with that format without having to cd into places.
2 Commenti
"But to do this I need to cd into a directory which seems really dum."
It is possible that ~ is not supported on your OS.
Walter Roberson
il 30 Mar 2018
~ is supported on Mac.
Risposte (0)
Categorie
Scopri di più su File Operations in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!