diff --git a/monkey/monkey_island/cc/repository/file_storage/i_file_repository.py b/monkey/monkey_island/cc/repository/file_storage/i_file_repository.py index bb9e345dc..237cc2c0d 100644 --- a/monkey/monkey_island/cc/repository/file_storage/i_file_repository.py +++ b/monkey/monkey_island/cc/repository/file_storage/i_file_repository.py @@ -20,6 +20,7 @@ class IFileRepository(metaclass=abc.ABCMeta): :param unsafe_file_name: An unsanitized file name that will identify the file :param file_contents: The data to be stored in the file + :raises ValueError: If the file name is an attempted directory traversal """ pass @@ -32,6 +33,7 @@ class IFileRepository(metaclass=abc.ABCMeta): :return: A file-like object providing access to the file's contents :raises FileNotFoundError: if the file does not exist :raises RetrievalError: if the file exists but cannot be retrieved + :raises ValueError: If the file name is an attempted directory traversal """ pass @@ -44,6 +46,7 @@ class IFileRepository(metaclass=abc.ABCMeta): idempotent and will succeed if the file to be deleted does not exist. :param unsafe_file_name: An unsanitized file name that identifies the file to be deleted + :raises ValueError: If the file name is an attempted directory traversal """ pass