mirror of
https://github.com/restic/restic.git
synced 2024-12-23 16:26:11 +00:00
Merge branch 'ls-command' of https://github.com/howeyc/restic into howeyc-ls-command
This commit is contained in:
commit
53f402f489
1 changed files with 6 additions and 1 deletions
|
@ -48,7 +48,7 @@ func printTree(prefix string, s *server.Server, id backend.ID) error {
|
||||||
fmt.Println(printNode(prefix, entry))
|
fmt.Println(printNode(prefix, entry))
|
||||||
|
|
||||||
if entry.Type == "dir" && entry.Subtree != nil {
|
if entry.Type == "dir" && entry.Subtree != nil {
|
||||||
err = printTree(filepath.Join(prefix, entry.Name), s, id)
|
err = printTree(filepath.Join(prefix, entry.Name), s, entry.Subtree)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -72,6 +72,11 @@ func (cmd CmdLs) Execute(args []string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
err = s.LoadIndex()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
name, err := backend.FindSnapshot(s, args[0])
|
name, err := backend.FindSnapshot(s, args[0])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue