main
py 4 lines 232 Bytes
Raw
1 # SPDX-License-Identifier: Apache-2.0
2 # SPDX-FileCopyrightText: Copyright contributors to the vLLM project
3 def sanitize_filename(filename: str) -> str:
4 return filename.replace("/", "_").replace("..", "__").strip("'").strip('"')