mirror of
https://github.com/rclone/rclone
synced 2024-11-28 06:41:41 +01:00
tree: remove workaround for tree library bug now it is fixed
This commit is contained in:
parent
b017fcfe9a
commit
63d0734c71
@ -124,9 +124,6 @@ func Tree(fsrc fs.Fs, outFile io.Writer, opts *tree.Options) error {
|
|||||||
inf := tree.New("/")
|
inf := tree.New("/")
|
||||||
var nd, nf int
|
var nd, nf int
|
||||||
if d, f := inf.Visit(opts); f != 0 {
|
if d, f := inf.Visit(opts); f != 0 {
|
||||||
if d > 0 {
|
|
||||||
d--
|
|
||||||
}
|
|
||||||
nd, nf = nd+d, nf+f
|
nd, nf = nd+d, nf+f
|
||||||
}
|
}
|
||||||
inf.Print(opts)
|
inf.Print(opts)
|
||||||
|
Loading…
Reference in New Issue
Block a user