コード例 #1
0
ファイル: ftp_client.py プロジェクト: hectron/ImageMachine
    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
コード例 #2
0
ファイル: image_csv.py プロジェクト: hectron/ImageMachine
 def work_in_tmp_dir(self):
     """
     Sets the instance to work in the temporary directory.
     """
     util.work_in_tmp_directory(self.temp_dir_name)