fixed handling of empty folder - legacy api