OXIESEC PANEL
- Current Dir:
/
/
opt
/
alt
/
python311
/
lib
/
python3.11
/
site-packages
/
s3transfer
/
__pycache__
Server IP: 2a02:4780:11:1594:0:ef5:22d7:a
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/14/2024 03:18:42 PM
rwxr-xr-x
📄
__init__.cpython-311.pyc
36.37 KB
05/14/2024 03:18:42 PM
rw-r--r--
📄
bandwidth.cpython-311.pyc
19.37 KB
05/14/2024 03:18:42 PM
rw-r--r--
📄
compat.cpython-311.pyc
2.91 KB
05/14/2024 03:18:42 PM
rw-r--r--
📄
constants.cpython-311.pyc
576 bytes
05/14/2024 03:18:42 PM
rw-r--r--
📄
copies.cpython-311.pyc
11.56 KB
05/14/2024 03:18:42 PM
rw-r--r--
📄
crt.cpython-311.pyc
39.22 KB
05/14/2024 03:18:42 PM
rw-r--r--
📄
delete.cpython-311.pyc
2.71 KB
05/14/2024 03:18:42 PM
rw-r--r--
📄
download.cpython-311.pyc
31.39 KB
05/14/2024 03:18:42 PM
rw-r--r--
📄
exceptions.cpython-311.pyc
1.75 KB
05/14/2024 03:18:42 PM
rw-r--r--
📄
futures.cpython-311.pyc
30.44 KB
05/14/2024 03:18:42 PM
rw-r--r--
📄
manager.cpython-311.pyc
28.09 KB
05/14/2024 03:18:42 PM
rw-r--r--
📄
processpool.cpython-311.pyc
43.7 KB
05/14/2024 03:18:42 PM
rw-r--r--
📄
subscribers.cpython-311.pyc
4.08 KB
05/14/2024 03:18:42 PM
rw-r--r--
📄
tasks.cpython-311.pyc
14.21 KB
05/14/2024 03:18:42 PM
rw-r--r--
📄
upload.cpython-311.pyc
32.28 KB
05/14/2024 03:18:42 PM
rw-r--r--
📄
utils.cpython-311.pyc
37.67 KB
05/14/2024 03:18:42 PM
rw-r--r--
Editing: download.cpython-311.pyc
Close
� ҀCf�m � �< � d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZ d dl m Z mZ d dlm Z mZmZmZmZmZmZmZmZ ej e� � Z G d� d� � Z G d � d e� � Z G d� de� � Z G d � de� � Z G d� de� � Z G d� de � � Z G d� de� � Z G d� de� � Z G d� de� � Z! G d� de� � Z" G d� de� � Z# G d� de� � Z$ G d� d e� � Z% G d!� d"� � Z& G d#� d$� � Z'dS )%� N��seekable)�RetriesExceededError��IN_MEMORY_DOWNLOAD_TAG)�SubmissionTask�Task) �S3_RETRYABLE_DOWNLOAD_ERRORS�CountCallbackInvoker�DeferredOpenFile�FunctionContainer�StreamReaderProgress�calculate_num_parts�calculate_range_parameter� get_callbacks�invoke_progress_callbacksc �R � e Zd ZdZd� Zed� � � Zd� Zd� Zd� Z d� Z d� Zd � Zd S )�DownloadOutputManagera� Base manager class for handling various types of files for downloads This class is typically used for the DownloadSubmissionTask class to help determine the following: * Provides the fileobj to write to downloads to * Get a task to complete once everything downloaded has been written The answers/implementations differ for the various types of file outputs that may be accepted. All implementations must subclass and override public methods from this class. c �0 � || _ || _ || _ d S �N)�_osutil�_transfer_coordinator�_io_executor)�self�osutil�transfer_coordinator�io_executors �F/opt/alt/python311/lib/python3.11/site-packages/s3transfer/download.py�__init__zDownloadOutputManager.__init__2 s � ����%9��"�'����� c � � t d� � �)ae Determines if the target for the download is compatible with manager :param download_target: The target for which the upload will write data to. :param osutil: The os utility to be used for the transfer :returns: True if the manager can handle the type of target specified otherwise returns False. zmust implement is_compatible()��NotImplementedError��cls�download_targetr s r � is_compatiblez#DownloadOutputManager.is_compatible7 s � � "�"B�C�C�Cr c � � dS )z�Get the tag (if any) to associate all GetObjectTasks :rtype: s3transfer.futures.TaskTag :returns: The tag to associate all GetObjectTasks with N� �r s r �get_download_task_tagz+DownloadOutputManager.get_download_task_tagE s � � �tr c � � t d� � �)a Get file-like object to use for io writes in the io executor :type transfer_future: s3transfer.futures.TransferFuture :param transfer_future: The future associated with upload request returns: A file-like object to write to z*must implement get_fileobj_for_io_writes()r"