INNER CODE UNIT · Python

collect_files

miztiik/AWS-Demos · how-to-examples/iam-s3-sqs-sns-video-transcoder.py:229

    def collect_files(self):
        """
        Get a list of all relevant files (based on the file extension)
        in the local unconverted media file directory.
        """
        path = os.path.join(self.unconverted_directory, self.file_pattern)
        return glob.glob(path)

    def check_unconverted(self):
        """
        Get a list of files that are present in the unconverted directory
        but not present in the converted directory. These are the files
        that should be uploaded and transcoded.

        If no files are present then an empty set is returned.
        """
        current_files = set(self.collect_files())

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…