mirror of
https://github.com/kopia/kopia.git
synced 2026-05-04 12:53:26 -04:00
replaced use of Vault with Repository
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
"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