Add a file to the manifest.

        :param item: The pathname to add. This can be relative to the base.
161201
def add(self, item):
        
        if not item.startswith(self.prefix):
            item = os.path.join(self.base, item)
        self.files.add(os.path.normpath(item))
486668
public void add(T item) {
        hasElements = true;
        navigator = emptyItemIndex;
        items[emptyItemIndex] = item;
        if (emptyItemIndex == size - 1) {
            wasFullAtleastOnce = true;
        }
        emptyItemIndex = (emptyItemIndex + 1) % size;
    }
179069
def add(self, item):
        
        check_not_none(item, "item can't be none")
        return self._encode_invoke(transactional_list_add_codec, item=self._to_data(item))
1315497
def visit_file(self, item, parent):
        
        if item.need_to_send:
            if item.size > self.settings.config.upload_bytes_per_chunk:
                msg = "Programmer Error: Trying to upload large file as small item size:{} name:{}"
                raise ValueError(msg.format(item.size, item.name))
            else:
                command = CreateSmallFileCommand(self.settings, item, parent,
                                                 self.settings.file_upload_post_processor)
                self.task_runner_add(parent, item, command)
437739
public function add_item(cc_i_item &$item) {
        if (is_null($this->itemlist)) {
            $this->itemlist = array();
        }
        $this->itemlist[$item->identifier] = $item;
    }
276662
def add_file(self, name, required=False, error=None, extensions=None):
        
        if name is None:
            return
        self.file_arguments.append(dict(
            name=name,
            required=required,
            error=error,
            extensions=extensions))
1363493
def add_to_submenu(self, submenu_path, item):
        '''
        
        '''
        for m in self.items:
            if m.name == submenu_path[0]:
                m.add_to_submenu(submenu_path[1:], item)
                return
        raise(ValueError("No submenu (%s) found" % (submenu_path[0])))
290350
def tag_add(self, item, tag):
        
        tags = self.item(item, "tags")
        self.item(item, tags=tags + (tag,))
425322
def _addItemMultiPart(self,
                          itemParameters,
                          filePath):
        
        url = self._location + "/addItem"
        params = {
            "f": "json",
            'multipart' : 'true',
            "filename"	: os.path.basename(filePath)
        }
        res = self._post(url=url,
                         param_dict=params,
                         securityHandler=self._securityHandler)
        if 'id' in res:
            itemID = res['id']
            iUrl = "%s/items/%s" % (self.location, itemID)
            ui = UserItem(url=iUrl,
                          securityHandler=self._securityHandler,
                          proxy_url=self._proxy_url,
                          proxy_port=self._proxy_port)
            res = ui.addByPart(filePath=filePath)
            res = ui.commit(wait=True)
            up = ItemParameter()
            up.title = itemParameters.title
            up.tags = itemParameters.tags
            up.filename = os.path.basename(filePath)
            up.type = itemParameters.type
            ui.updateItem(itemParameters=up)

            update_url = ui.root.replace('/rest/', '/') + "/update"

            data = {'title': itemParameters.title,
                   'tags': itemParameters.tags,
                   'filename': os.path.basename(filePath),
                   'type': itemParameters.type,
                   'f': 'json'}
            for k,v in itemParameters.value.items():
                if k not in data.keys():
                    if isinstance(v, bool):
                        data[k] = json.dumps(v)
                    else:
                        data[k] = v
            res = self._post(url=update_url,
                             param_dict=data,
                            securityHandler=self._securityHandler)
            ui.refresh()
            return ui
        return None
1238691
def create_cached_item(self, path, content):
        
        if isinstance(content, Image.Image):
            item_path = '%s/%s/%s' % (
                current_app.static_folder,
                self.cache_folder,
                path.strip('/')
            )
            self.make_dirs(item_path)

            content.save(item_path)

            if os.path.isfile(item_path):
                return '%s/%s/%s' % (current_app.static_url_path, self.cache_folder, path.strip('/'))
            else:  # pragma: no cover
                LOGGER.warning('File is not created on path: %s' % item_path)
                return False
        else:
            return False
9580
def append(self, item):
        
        if not self.items:        # was list empty ?
            self.items = item     # then this is the new head
        item.insert(self.items)
159690
def add(item)
      if item.respond_to?(:lat) && item.respond_to?(:lon)
        @min_lat = item.lat if item.lat < @min_lat
        @min_lon = item.lon if item.lon < @min_lon
        @max_lat = item.lat if item.lat > @max_lat
        @max_lon = item.lon if item.lon > @max_lon
      else
        @min_lat = item.min_lat if item.min_lat < @min_lat
        @min_lon = item.min_lon if item.min_lon < @min_lon
        @max_lat = item.max_lat if item.max_lat > @max_lat
        @max_lon = item.max_lon if item.max_lon > @max_lon
      end
    end
508084
public final void add(@NonNull final AbstractItem item) {
        Condition.INSTANCE.ensureNotNull(item, "The item may not be null");
        items.add(item);

        if (item instanceof Item && ((Item) item).getIcon() != null) {
            iconCount++;
        } else if (item instanceof Divider) {
            dividerCount++;
        }

        rawItems = null;
        notifyOnDataSetChanged();
    }
1374360
def append(self, item):
        
        return self._client.rpush(self.key_prefix, self._dumps(item))
313279
def add(self, item):
        
        check_not_none(item, "Value can't be None")
        element_data = self._to_data(item)
        return self._encode_invoke(list_add_codec, value=element_data)
362458
def put (self, item):
        
        with self.mutex:
            self._put(item)
            self.not_empty.notify()
681467
def add_item(c, name, item):
        
        if isinstance(item, MenuItem):
            if name not in c.items:
                c.items[name] = []
            c.items[name].append(item)
            c.sorted[name] = False