diff options
Diffstat (limited to 'kvmd/plugins/msd/__init__.py')
-rw-r--r-- | kvmd/plugins/msd/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kvmd/plugins/msd/__init__.py b/kvmd/plugins/msd/__init__.py index e0fc856e..34efaafe 100644 --- a/kvmd/plugins/msd/__init__.py +++ b/kvmd/plugins/msd/__init__.py @@ -163,9 +163,9 @@ class BaseMsd(BasePlugin): class MsdFileReader(BaseMsdReader): # pylint: disable=too-many-instance-attributes - def __init__(self, notifier: aiotools.AioNotifier, path: str, chunk_size: int) -> None: + def __init__(self, notifier: aiotools.AioNotifier, name: str, path: str, chunk_size: int) -> None: self.__notifier = notifier - self.__name = os.path.basename(path) + self.__name = name self.__path = path self.__chunk_size = chunk_size @@ -222,9 +222,9 @@ class MsdFileReader(BaseMsdReader): # pylint: disable=too-many-instance-attribu class MsdFileWriter(BaseMsdWriter): # pylint: disable=too-many-instance-attributes - def __init__(self, notifier: aiotools.AioNotifier, path: str, file_size: int, sync_size: int, chunk_size: int) -> None: + def __init__(self, notifier: aiotools.AioNotifier, name: str, path: str, file_size: int, sync_size: int, chunk_size: int) -> None: self.__notifier = notifier - self.__name = os.path.basename(path) + self.__name = name self.__path = path self.__file_size = file_size self.__sync_size = sync_size |