public LiveFile scan ( LiveFile current ) throws IOException { try { return scanInternal ( current ) ; } catch ( NoSuchFileException ex ) { // this could happen because there has been a file rotation/deletion after the search/filter/sort and before // the creation of the nen current. Lets sleep for 50ms and try again, if fails again give up. ThreadUtil . sleep ( 50 ) ; return scanInternal ( current ) ; } }
Scans the directory of for the next file .