def add_path(self, path, base=None, index=None, create=False):
        base = os.path.abspath(os.path.dirname(base or self.base))
        path = os.path.abspath(os.path.join(base, os.path.dirname(path)))
        path += os.sep
        if path in self.path:
            self.path.remove(path)
        if create and not os.path.isdir(path):
            os.makedirs(path)
        if index is None:
            self.path.append(path)
        else:
            self.path.insert(index, path)
        self.cache.clear()
        return os.path.exists(path)
Add a new path to the list of search paths. Return False if the
dataset/ETHPy150Open adampresley/bottlepy-bootstrap/app/bottle.py/ResourceManager.add_path