Exemplo n.º 1
0
    def get_all_files(self):
        """
        Lists all the directory contents, and retrieves the files that we can
        use.
        """
        files = self.select_allowed_files(self.list_ftp_files())

        util.work_in_tmp_directory('tmp')

        self.get_files(files)

        return files
Exemplo n.º 2
0
 def work_in_tmp_dir(self):
     """
     Sets the instance to work in the temporary directory.
     """
     util.work_in_tmp_directory(self.temp_dir_name)