read and list directory function with filter option. returns only directories which match a prefix filter.
click here to select all the code