[−][src]Function ommui_file_loading::load_directory_listing
pub fn load_directory_listing(pattern: &str) -> Result<IndexSet<String>, Error>
Load a IndexSet
from a directory, one entry for each glob match.
This function takes a glob pattern that determines which entries get put into the set. The entries in the set contain the parts that differ from the pattern.
For example if the directory /srv/data
contains the files
hello.json
, world.json
and readme.txt
, and the glob pattern
is /srv/data/*.json
, then the resulting set will contain
hello
and world
.