fix(backup): retain staging cleanup capability
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package safeio
|
||||
|
||||
import (
|
||||
"os"
|
||||
"strings"
|
||||
"sync"
|
||||
)
|
||||
@@ -13,6 +14,7 @@ type PrivateDirectoryHandle interface {
|
||||
Validate() error
|
||||
OpenChild(name string, ensure bool) (PrivateDirectoryHandle, bool, error)
|
||||
CreateRegular(name string, contents []byte) (bool, error)
|
||||
CreateRegularFile(name string) (*os.File, bool, error)
|
||||
ReadRegular(name string, maximum int64) ([]byte, bool, error)
|
||||
ReplaceRegular(name string, contents []byte) error
|
||||
RemoveRegular(name string) (bool, error)
|
||||
|
||||
Reference in New Issue
Block a user