Get the next file in the sequence.
If isSequential is false, the same name will be returned each time.