code: def download_directory(self, bucket, key, directory, transfer_config=None, subscribers=None):
          ''' download a directory using Aspera '''
          check_io_access(directory, os.W_OK)
          return self._queue_task(bucket, [FilePair(key, directory)], transfer_config,
                                  subscribers, enumAsperaDirection.RECEIVEf download_directory(self, bucket, key, directory, transfer_config=None, subscribers=None):
          ''' download a directory using Aspera '''
          check_io_access(directory, os.W_OK)
          return self._queue_task(bucket, [FilePair(key, directory)], transfer_config,
                                  subscribers, enumAsperaDirection.RECEIVE)
docs: download a directory using Aspera