# Path: processing/docker_utils.py
#     HAVE_DOCKER = True
#     HAVE_DOCKER = False
# def temp_volume(target):


from fame.core.module import ProcessingModule, ModuleInitializationError
from ..docker_utils import HAVE_DOCKER, docker_client, docker
File Name
Directory
File Modification Date/Time
File Access Date/Time
File Inode Change Date/Time
File Permissions""",

            "description": "List of properties to exclude from results (one per line)."
        }
    ]

    def initialize(self):
        # Make sure docker is available
        if not HAVE_DOCKER:
            raise ModuleInitializationError(self, "Missing dependency: docker")

        # Properly format exclusion list
        attributes = self.exclude.splitlines()
        self.exclude = []

        for attribute in attributes:
            self.exclude.append(attribute.strip())

        return True

    def exiftool(self, target):
        try:
            self.parse_output(docker_client.containers.run(
                'fame/exiftool',
                'target.file',

# Path: processing/docker_utils.py
#     HAVE_DOCKER = True
#     HAVE_DOCKER = False
# def temp_volume(target):


# Path: processing/exiftool/exiftool.py
from fame.core.module import ProcessingModule, ModuleInitializationError
from ..docker_utils import HAVE_DOCKER, docker_client, docker

File Name
Directory
File Modification Date/Time
File Access Date/Time
File Inode Change Date/Time
File Permissions""",

            "description": "List of properties to exclude from results (one per line)."
        }
    ]

    def initialize(self):
        # Make sure docker is available
        if not HAVE_DOCKER:
            raise ModuleInitializationError(self, "Missing dependency: docker")

        # Properly format exclusion list
        attributes = self.exclude.splitlines()
        self.exclude = []

        for attribute in attributes:
            self.exclude.append(attribute.strip())

        return True

    def exiftool(self, target):
        try:
            self.parse_output(docker_client.containers.run(
                'fame/exiftool',
                'target.file',

                volumes={target: {'bind': '/data/target.file', 'mode': 'ro'}},