mirror of
https://github.com/kopia/kopia.git
synced 2026-10-23 22:58:42 -04:00
replaced use of Vault with Repository
This commit is contained in:
1 parent
50c2cd86a3
commit
4dcdb69dcc
21 files changed
+54
-99
No files matched your search
+3
-4
@@ -5,7 +5,6 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/kopia/kopia/client"
|
||||
"github.com/kopia/kopia/fs"
|
||||
"github.com/kopia/kopia/fs/repofs"
|
||||
"github.com/kopia/kopia/repo"
|
||||
@@ -26,7 +25,7 @@ func runLSCommand(context *kingpin.ParseContext) error {
|
||||
conn := mustOpenConnection()
|
||||
defer conn.Close()
|
||||
|
||||
oid, err := parseObjectID(*lsCommandPath, conn.Vault, conn.Repository)
|
||||
oid, err := parseObjectID(*lsCommandPath, conn)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -46,8 +45,8 @@ func init() {
|
||||
lsCommand.Action(runLSCommand)
|
||||
}
|
||||
|
||||
func listDirectory(conn *client.Connection, prefix string, oid repo.ObjectID, indent string) error {
|
||||
d := repofs.Directory(conn.Repository, oid)
|
||||
func listDirectory(conn *repo.Repository, prefix string, oid repo.ObjectID, indent string) error {
|
||||
d := repofs.Directory(conn, oid)
|
||||
|
||||
entries, err := d.Readdir()
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user