summaryrefslogtreecommitdiff
path: root/kvmd/plugins/msd/otg/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/plugins/msd/otg/__init__.py')
-rw-r--r--kvmd/plugins/msd/otg/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/kvmd/plugins/msd/otg/__init__.py b/kvmd/plugins/msd/otg/__init__.py
index 377c1c73..25585302 100644
--- a/kvmd/plugins/msd/otg/__init__.py
+++ b/kvmd/plugins/msd/otg/__init__.py
@@ -45,6 +45,7 @@ from ....validators.os import valid_abs_dir
from ....validators.os import valid_command
from .... import aiotools
+from .... import aiofs
from .. import MsdError
from .. import MsdIsBusyError
@@ -340,7 +341,7 @@ class Plugin(BaseMsd): # pylint: disable=too-many-instance-attributes
async def write_image_chunk(self, chunk: bytes) -> int:
assert self.__new_file
- await aiotools.afile_write_now(self.__new_file, chunk)
+ await aiofs.afile_write_now(self.__new_file, chunk)
self.__new_file_written += len(chunk)
now = time.time()
if self.__new_file_tick + 1 < now: