code: public File getNextFile()
     {
        File nextFile = null;
  
        try
        {
           String sNextName = generateName();
  
           nextFile = new File(backupSetDir.getAbsoluteFile() + File.separator + sNextName);
           if (isFullBackup && isDirectoryForFullBackup)
           {
              if (!PrivilegedFileHelper.exists(nextFile))
              {
                 PrivilegedFileHelper.mkdirs(nextFile);
              }
           }
           else
           {
              PrivilegedFileHelper.createNewFile(nextFile);
           }
        }
        catch (IOException e)
        {
           LOG.error("Can nit get next file : " + e.getLocalizedMessage(), e);
        }
  
        return nextFile;
     }
docs: Get next file in backup set.
  
  @return
  file