Commit 86ecb797 authored by Brian Downs's avatar Brian Downs

remove dirs from snapshot listing

parent 2ca14a33
...@@ -910,6 +910,9 @@ func (e *ETCD) listSnapshots(ctx context.Context, snapshotDir string) ([]snapsho ...@@ -910,6 +910,9 @@ func (e *ETCD) listSnapshots(ctx context.Context, snapshotDir string) ([]snapsho
if obj.Err != nil { if obj.Err != nil {
return nil, obj.Err return nil, obj.Err
} }
if obj.Size == 0 {
continue
}
ca, err := time.Parse(time.RFC3339, obj.LastModified.Format(time.RFC3339)) ca, err := time.Parse(time.RFC3339, obj.LastModified.Format(time.RFC3339))
if err != nil { if err != nil {
return nil, err return nil, err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment