do not assume that retrieved files hierarchy is always just one folder/level deep