fix: update StoragePath method to return specific path for single file

This commit is contained in:
krau
2026-01-30 13:09:21 +08:00
parent a02e8a8d90
commit b431fa08e2

View File

@@ -76,6 +76,9 @@ func (t *Task) StorageName() string {
// StoragePath implements TaskInfo.
func (t *Task) StoragePath() string {
if len(t.files) == 1 {
return t.StorPath + "/" + t.files[0].Name
}
return t.StorPath
}