def get_files(self, dotignore=".dotignore"):
        """
        Generate the path of files in your dotfile directory.
        Thes paths will include both full paths to your $HOME directory
        and full paths to your dot directory.
        get_files() is used before link() and unlink()
        """

        # use the .dotignore file IN the git directory, not in cwd
        ignore_file = dotignore
        if self.git_dir != ".":
            ignore_file = self.git_dir + "/" + dotignore

        # prepare list of files NOT to link to $HOME
        # based on the contents of the .dotignore file
        IGNORE = []
        if os.path.exists(ignore_file):
            with open(ignore_file) as f:
                IGNORE = f.read().split()

        # still never add the .dotignore file to $HOME
        IGNORE.append(dotignore)

        # compile a list of full paths to begin with
        # this will make other operations much simpler
        self.git_links  = []
        self.home_links = []

        for f in os.listdir(self.git_dir):
            if f in IGNORE:
                continue

            # by default place dotfiles in your $HOME
            to = os.environ["HOME"] + "/"

            # make them dotfiles, it they do not begin with dots
            if not f.startswith("."):
                to += "."
            to += f

            # this is basically strjoin(cwd + parameter)
            # but it doesn't end in a slash for some reason
            f = os.path.abspath(self.git_dir) + "/" + f

            self.git_links.append(f)
            self.home_links.append(to)
dataset/ETHPy150Open ProfOak/dotstribute/dotstribute.py/Dot.get_files/original