mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-07-10 23:12:28 +08:00
fix: update StoragePath method to return specific path for single file
This commit is contained in:
@@ -76,6 +76,9 @@ func (t *Task) StorageName() string {
|
|||||||
|
|
||||||
// StoragePath implements TaskInfo.
|
// StoragePath implements TaskInfo.
|
||||||
func (t *Task) StoragePath() string {
|
func (t *Task) StoragePath() string {
|
||||||
|
if len(t.files) == 1 {
|
||||||
|
return t.StorPath + "/" + t.files[0].Name
|
||||||
|
}
|
||||||
return t.StorPath
|
return t.StorPath
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user