mirror of
https://github.com/restic/restic.git
synced 2026-11-27 15:23:48 +00:00
Moves files
This commit is contained in:
1 parent
d1bd160b0a
commit
83d1a46526
284 files changed
No files matched your search
@@ -0,0 +1,25 @@
|
||||
package restic
|
||||
|
||||
import (
|
||||
"os"
|
||||
"os/user"
|
||||
|
||||
"restic/debug"
|
||||
)
|
||||
|
||||
// uidGidInt always returns 0 on Windows, since uid isn't numbers
|
||||
func uidGidInt(u user.User) (uid, gid uint32, err error) {
|
||||
return 0, 0, nil
|
||||
}
|
||||
|
||||
// checkProcess will check if the process retaining the lock exists.
|
||||
// Returns true if the process exists.
|
||||
func (l Lock) processExists() bool {
|
||||
proc, err := os.FindProcess(l.PID)
|
||||
if err != nil {
|
||||
debug.Log("error searching for process %d: %v\n", l.PID, err)
|
||||
return false
|
||||
}
|
||||
proc.Release()
|
||||
return true
|
||||
}
|
||||
Reference in new issue
Block a user