forked from p15670423/monkey
Island: Refactor IFileRepository imports/exports
Export `IFileRepository` and `LocalStorageFileRepository` from `repository/file_storage` so that the `repository` package does not depend on the internal structure of the `file_storage` subpackage.
This commit is contained in:
parent
e1d0d066e9
commit
daa6583b08
|
@ -1,2 +1 @@
|
|||
from .file_storage.local_storage_file_repository import LocalStorageFileRepository
|
||||
from .file_storage.i_file_repository import IFileRepository, FileRetrievalError
|
||||
from .file_storage import FileRetrievalError, IFileRepository, LocalStorageFileRepository
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
from .i_file_repository import IFileRepository, FileRetrievalError
|
||||
from .local_storage_file_repository import LocalStorageFileRepository
|
|
@ -6,7 +6,7 @@ from typing import BinaryIO
|
|||
from common.utils.file_utils import get_all_regular_files_in_directory
|
||||
from monkey_island.cc.server_utils.file_utils import create_secure_directory
|
||||
|
||||
from .i_file_repository import FileRetrievalError, IFileRepository
|
||||
from . import FileRetrievalError, IFileRepository
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
|
Loading…
Reference in New Issue