Handle remote dirs larger than 1000 files