Skip to content

Commit b431fa0

Browse files
committed
fix: update StoragePath method to return specific path for single file
1 parent a02e8a8 commit b431fa0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/tasks/directlinks/task.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ func (t *Task) StorageName() string {
7676

7777
// StoragePath implements TaskInfo.
7878
func (t *Task) StoragePath() string {
79+
if len(t.files) == 1 {
80+
return t.StorPath + "/" + t.files[0].Name
81+
}
7982
return t.StorPath
8083
}
8184

0 commit comments

Comments
 (0)