lib.FileTransfer: Rename to FileContext

Rename class FileTransfer to FileContext because that's the better
name. It's the base class of ExecContext and also a context.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-04-17 09:26:42 +02:00
commit 4f98fd6c78
3 changed files with 3 additions and 3 deletions

View file

@ -12,7 +12,7 @@ if TYPE_CHECKING:
from .log import *
from .base import Input, InputMode, Result
from .FileTransfer import FileTransfer as Base
from .FileContext import FileContext as Base
class ExecContext(Base):

View file

@ -11,7 +11,7 @@ if TYPE_CHECKING:
from .log import *
from .base import Input, InputMode, Result
class FileTransfer(abc.ABC):
class FileContext(abc.ABC):
def __init__(self, uri: str, interactive: bool|None=None, verbose_default=False):
self.__uri = uri

View file

@ -5,7 +5,7 @@ from __future__ import annotations
from typing import TYPE_CHECKING
from urllib.parse import urlparse
from ..FileTransfer import FileTransfer as Base
from ..FileContext import FileContext as Base
from ..base import Result
if TYPE_CHECKING: