forked from TrueCloudLab/restic
Rename 'Repo' -> 'Repository'
This commit is contained in:
parent
232c472836
commit
95536e8a21
15 changed files with 73 additions and 73 deletions
4
node.go
4
node.go
|
@ -103,7 +103,7 @@ func nodeTypeFromFileInfo(fi os.FileInfo) string {
|
|||
}
|
||||
|
||||
// CreateAt creates the node at the given path and restores all the meta data.
|
||||
func (node *Node) CreateAt(path string, repo *repository.Repo) error {
|
||||
func (node *Node) CreateAt(path string, repo *repository.Repository) error {
|
||||
switch node.Type {
|
||||
case "dir":
|
||||
if err := node.createDirAt(path); err != nil {
|
||||
|
@ -176,7 +176,7 @@ func (node Node) createDirAt(path string) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (node Node) createFileAt(path string, repo *repository.Repo) error {
|
||||
func (node Node) createFileAt(path string, repo *repository.Repository) error {
|
||||
f, err := os.OpenFile(path, os.O_CREATE|os.O_WRONLY, 0600)
|
||||
defer f.Close()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue