Adds a new fileName in the list of files making up this index
@param fileName
553132
void addFileName(final String fileName) {
      writeLock.lock();
      try {
         final FileListCacheValue fileList = getFileList();
         boolean done = fileList.add(fileName);
         if (done) {
            updateFileList(fileList);
            if (trace)
               log.trace("Updated file listing: added " + fileName);
         }
      } finally {
         writeLock.unlock();
      }
   }
389575
public synchronized void addFile(String filename, String filePath) {
        // fix this to check if duplicate name exists.
        int fileIndex = fileNameList.indexOf(filename);
        if (fileIndex == -1) {
            fileNameList.add(filename);
            filePathList.add(filePath);
        }
    }
231644
def add_input_file(self, filename):
    
    if filename not in self.__input_files:
      self.__input_files.append(filename)
161665
public void addDir(String dirName) {
        Path dir = Paths.get(dirName);

        if (Files.isDirectory(dir)) {
            list.add(new DirPathEntry(dir));
        }
    }
320057
public static void renameFiles(File[] files, String[] fileNames) {
        int length = Integer.min(files.length, fileNames.length);
        for (int i = 0; i < length; i++) {
            String fileName = files[i].getParent() + ValueConsts.SEPARATOR + fileNames[i];
            if (!fileName.contains(".")) {
                fileName += files[i].getName().substring(files[i].getName().lastIndexOf("."));
            }
            if (files[i].renameTo(new File(fileName))) {
                logger.info("rename file '" + files[i].getAbsolutePath() + "' to '" + fileName + "'");
            } else {
                logger.info("rename file '" + files[i].getAbsolutePath() + "' error");
            }
        }
    }
313932
public function addFilename($filename)
    {

        $item = new ZipFileItem();
        $item->orginalFilename = $filename;
        $item->internalFilename = (new File($filename))->filename;
        $this->fileItemList[] = $item;

        return $this;

    }
1141415
public FileContentFileName inFileNamed(String filenamePattern)
    {
        if (filenamePattern != null && !filenamePattern.isEmpty())
        {
            this.filenamePattern = new RegexParameterizedPatternParser(filenamePattern);
        }
        return this;
    }
348304
private int retrieveIndexValueFromFileName(String fileName) {
        int index = 0;
        if (fileName != null && !fileName.trim().isEmpty()) {
            index = Integer.parseInt(fileName.substring(fileName.lastIndexOf('-') + 1,
                    fileName.length() - EXTENSION.length()));
        }
        return index;
    }
1152010
public void addFile(File file) {
        String name = "file";
        files.put(normalizeDuplicateName(name), file);
    }
1273337
@GwtIncompatible("com.google.io.Files")
  public void save(String filename) throws IOException {
    Files.write(toBytes(), new File(filename));
  }
1272422
def add_file(self, file, filename):
        
        self.files['_{}'.format(filename)] = (filename, file)
1080260
private static int getIndexFromFilename(String fileName) {
        // remove the beginning of the file name
        String resStr = fileName.replace(
                latestMOTDSerializedFileName.substring(0, latestMOTDSerializedFileName.indexOf("{index}")), "");

        // remove the end of the file name
        resStr = resStr.replace(
                latestMOTDSerializedFileName.substring(latestMOTDSerializedFileName.indexOf("{index}") + 7), "");

        return Integer.parseInt(resStr);
    }
830200
public static void renameFiles(File[] filePath, String prefix, String suffix, int start) {
        String[] fileNames = new String[filePath.length];
        for (int i = 0; i < fileNames.length; i++) {
            fileNames[i] = prefix + (start++) + suffix;
        }
        renameFiles(filePath, fileNames);
    }
562752
void addColumn(String columnName)
    {
        data.add(new ArrayList<String>());
        columnNames.add(columnName);
    }
1039104
def add_file(self, filename):
        
        with (open(filename, 'rb')) as f:
            data = f.read()
        # below won't handle the same name files
        # in different paths
        fname = os.path.basename(filename)
        self.files[fname] = base64.b64encode(data)
367438
void addPosition( String filename, int line, int column ) {
        LessFilePosition pos = new LessFilePosition( filename, line, column );
        if( !positions.contains( pos ) ) {
            this.positions.add( pos );
        }
    }
515853
public void addFile(String filename, String filePath) {
        int pathIndex = filePathList.indexOf(filePath);
        if (pathIndex == -1) {
            fileNameList.add(filename);
            filePathList.add(filePath);
        }
    }