Skip to content

Commit

Permalink
Update comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjhuang committed Aug 8, 2024
1 parent 7461e8e commit 836db8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion model_filemanager/download_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 836db8c

Please sign in to comment.