mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-06-02 22:20:41 +08:00
feat: rename file only when storagePath exists
This commit is contained in:
@@ -21,6 +21,7 @@ type Storage interface {
|
||||
Name() string
|
||||
JoinStoragePath(task types.Task) string
|
||||
Save(ctx context.Context, reader io.Reader, storagePath string) error
|
||||
Exists(ctx context.Context, storagePath string) bool
|
||||
}
|
||||
|
||||
type StorageNotSupportStream interface {
|
||||
|
||||
Reference in New Issue
Block a user