mirror of
https://github.com/rclone/rclone.git
synced 2025-08-15 08:12:45 +02:00
Factor Fs.Put into Object.Update and call Update rather than Put if possible
This commit is contained in:
3
fs/fs.go
3
fs/fs.go
@ -103,6 +103,9 @@ type Object interface {
|
||||
// Open opens the file for read. Call Close() on the returned io.ReadCloser
|
||||
Open() (io.ReadCloser, error)
|
||||
|
||||
// Update in to the object with the modTime given of the given size
|
||||
Update(in io.Reader, modTime time.Time, size int64) error
|
||||
|
||||
// Storable says whether this object can be stored
|
||||
Storable() bool
|
||||
|
||||
|
Reference in New Issue
Block a user