Compare commits
No commits in common. "63f6f99caa11896e5b48f1abe886e5267b9417b5" and "641abcdd90cd25fe366c55065202693f54191f86" have entirely different histories.
63f6f99caa
...
641abcdd90
|
@ -11,10 +11,6 @@ class Directory(ABC):
|
||||||
|
|
||||||
self.contents = self.populate(log)
|
self.contents = self.populate(log)
|
||||||
|
|
||||||
@property
|
|
||||||
def name(self):
|
|
||||||
return self.path.name
|
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def populate(self, log: Log) -> list:
|
def populate(self, log: Log) -> list:
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
from abc import ABC, abstractmethod
|
from abc import ABC, abstractmethod
|
||||||
from dir import Root
|
from dir import Root
|
||||||
from log import Log, LogCat
|
from log import Log, LogCat
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
class Layer(ABC):
|
class Layer(ABC):
|
||||||
def __init__(self, log: Log, log_category: str):
|
def __init__(self, log_path: Path, log_category: str):
|
||||||
self.log = LogCat(log.queue, log_category)
|
self.log_path = log_path
|
||||||
|
self.__log = Log(log_path)
|
||||||
def process(self, root: Root):
|
self.log = LogCat(self.__log.queue, log_category)
|
||||||
self._process(root)
|
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def _process(self, root: Root):
|
def __process(self, root: Root):
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
Loading…
Reference in New Issue
Block a user