1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-23 19:53:53 +00:00

Add resume feature

Added an interface and machinery for resuming failed uploads.
Implemented this interface in the local backend.
Later on it can be implemented by any supporting backend.

Fixes #87
This commit is contained in:
Maxwell Calman
2020-08-31 10:25:10 -04:00
committed by Ivan Andreev
parent ac2e5fde36
commit b015012d8b
19 changed files with 712 additions and 80 deletions

View File

@@ -0,0 +1,23 @@
//go:build !windows
// +build !windows
package operations
import (
"os"
"os/exec"
"syscall"
)
func sendInterrupt() error {
p, err := os.FindProcess(syscall.Getpid())
if err != nil {
return err
}
err = p.Signal(os.Interrupt)
return err
}
func setupCmd(cmd *exec.Cmd) {
// Only needed for windows
}