From 836db8cf7f01944f8ba1993e90c80b8a5d47d7b8 Mon Sep 17 00:00:00 2001 From: Robin Huang Date: Thu, 8 Aug 2024 13:11:26 -0700 Subject: [PATCH] Update comment. --- model_filemanager/download_models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/model_filemanager/download_models.py b/model_filemanager/download_models.py index 0a59f001edd..406e3588344 100644 --- a/model_filemanager/download_models.py +++ b/model_filemanager/download_models.py @@ -180,7 +180,9 @@ async def handle_download_error(e: Exception, def validate_model_subdirectory(model_subdirectory: str) -> bool: """ - Validate that the model subdirectory is safe. + Validate that the model subdirectory is safe to install into. + Must not contain relative paths, nested paths or special characters + other than underscores and hyphens. Args: model_subdirectory (str): The subdirectory for the specific model type.