Returns the list of strings extracted from the file using either
        open() if it is a local file, or by copying over the network using
        sftp over SSH.

def readlines(self, filepath):
        """Returns the list of strings extracted from the file using either
        open() if it is a local file, or by copying over the network using
        sftp over SSH."""
        target = self._read_check(filepath)

        if os.path.isfile(target):
            with open(target) as f:
                lines = f.readlines()

            #If we got this file via SSH, delete it from the temp folder
            if self.is_ssh(filepath):
                os.remove(target)
        else:
            lines = []

        return lines