Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

tree: remove workaround for tree library bug now it is fixed

Nick Craig-Wood63d0734c71ee
diff --git a/cmd/tree/tree.go b/cmd/tree/tree.go
index c11ce6496..7927ba97e 100644
--- a/cmd/tree/tree.go
+++ b/cmd/tree/tree.go
@@ -124,9 +124,6 @@ func Tree(fsrc fs.Fs, outFile io.Writer, opts *tree.Options) error {
inf := tree.New("/")
var nd, nf int
if d, f := inf.Visit(opts); f != 0 {
- if d > 0 {
- d--
- }
nd, nf = nd+d, nf+f
}
inf.Print(opts)