feat(file-summary): 实现文件处理技能链路
This commit is contained in:
12
review_agent/file_summary/paths.py
Normal file
12
review_agent/file_summary/paths.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
def resolve_storage_path(storage_path: str) -> Path:
|
||||
path = Path(storage_path)
|
||||
if path.is_absolute():
|
||||
return path
|
||||
return Path(settings.MEDIA_ROOT) / path
|
||||
Reference in New Issue
Block a user