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:
Mike Salvatore 2022-05-31 13:16:50 -04:00
parent e1d0d066e9
commit daa6583b08
3 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -0,0 +1,2 @@
from .i_file_repository import IFileRepository, FileRetrievalError
from .local_storage_file_repository import LocalStorageFileRepository

View File

@ -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__)