done = nfile>files.length