mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-25 09:35:54 +02:00
24 lines
530 B
Python
24 lines
530 B
Python
|
|
# -*- coding: utf-8 -*-
|
||
|
|
|
||
|
|
from __future__ import annotations
|
||
|
|
from typing import TYPE_CHECKING
|
||
|
|
|
||
|
|
import abc
|
||
|
|
from typing import Iterable
|
||
|
|
|
||
|
|
from .Backend import Backend as Base
|
||
|
|
|
||
|
|
if TYPE_CHECKING:
|
||
|
|
from ..CmdPkg import CmdPkg as Parent
|
||
|
|
|
||
|
|
class BePkg(Base):
|
||
|
|
|
||
|
|
def __init__(self, parent: Parent):
|
||
|
|
super().__init__(parent)
|
||
|
|
|
||
|
|
async def list_files(self, name: str) -> Iterable[str]:
|
||
|
|
return await self._list_files(name)
|
||
|
|
|
||
|
|
@abc.abstractmethod
|
||
|
|
async def _list_files(self, name: str) -> Iterable[str]:
|
||
|
|
pass
|