mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
lib/file: make pre-allocate detect disk full errors and return them
This commit is contained in:
6
lib/file/preallocate.go
Normal file
6
lib/file/preallocate.go
Normal file
@@ -0,0 +1,6 @@
|
||||
package file
|
||||
|
||||
import "errors"
|
||||
|
||||
// ErrDiskFull is returned from PreAllocate when it detects disk full
|
||||
var ErrDiskFull = errors.New("preallocate: file too big for remaining disk space")
|
||||
Reference in New Issue
Block a user