It listing directories fails, treat it as if the directory was empty.