feat: rename file only when storagePath exists

This commit is contained in:
krau
2025-06-11 09:54:08 +08:00
parent 9d3a3a8dcd
commit e85d3c9441
8 changed files with 59 additions and 19 deletions

View File

@@ -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 {