support cycling between files in file handler
Merge pull request #1785 from diegosarmentero/master

support cycling between files in file handler