<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _create_file_driver(self, config):
 """ Create an instance of the file cache driver. :param config: The driver configuration :type config: dict :rtype: Repository """

        kwargs = {
            'directory': config['path']
        }

        if 'hash_type' in config:
            kwargs['hash_type'] = config['hash_type']

        return self.repository(FileStore(**kwargs))