[FLINK-1307] Allow input from nested directory structure

no, the else block corresponds to the call from `getFileStats`, where the length calculation is performed after file enumeration. I did it this way trying not to change existing logic, but if you think it's confusing I can change it :)