Add a folder, library (.py) or resource file (.robot, .tsv, .txt) to the database

def add(self, name, monitor=True):
        """Add a folder, library (.py) or resource file (.robot, .tsv, .txt) to the database
        """

        if os.path.isdir(name):
            if (not os.path.basename(name).startswith(".")):
                self.add_folder(name)

        elif os.path.isfile(name):
            if ((self._looks_like_resource_file(name)) or
                (self._looks_like_libdoc_file(name)) or
                (self._looks_like_library_file(name))):
                self.add_file(name)
        else:
            # let's hope it's a library name!
            self.add_library(name)