Added helper get_immediate_subdirectories