@@ -101,6 +101,34 @@ func setupPipeline(syncGroup *pipeline.Group, cli *argsParsed) {
101
101
})
102
102
}
103
103
104
+ if cli .FilterDirs {
105
+ syncGroup .AddPipeStep (pipeline.Step {
106
+ Name : "FilterObjectsDirs" ,
107
+ Fn : collection .FilterObjectsDirs ,
108
+ })
109
+ }
110
+
111
+ if cli .FilterDirsNot {
112
+ syncGroup .AddPipeStep (pipeline.Step {
113
+ Name : "FilterObjectsDirsNot" ,
114
+ Fn : collection .FilterObjectsDirsNot ,
115
+ })
116
+ }
117
+
118
+ if cli .FilterExist {
119
+ syncGroup .AddPipeStep (pipeline.Step {
120
+ Name : "FilterObjectsExist" ,
121
+ Fn : collection .FilterObjectsExist ,
122
+ })
123
+ }
124
+
125
+ if cli .FilterExistNot {
126
+ syncGroup .AddPipeStep (pipeline.Step {
127
+ Name : "FilterObjectsExistNot" ,
128
+ Fn : collection .FilterObjectsExistNot ,
129
+ })
130
+ }
131
+
104
132
loadObjMetaStep := pipeline.Step {
105
133
Name : "LoadObjMeta" ,
106
134
Fn : collection .LoadObjectMeta ,
@@ -129,20 +157,6 @@ func setupPipeline(syncGroup *pipeline.Group, cli *argsParsed) {
129
157
})
130
158
}
131
159
132
- if cli .FilterDirs {
133
- syncGroup .AddPipeStep (pipeline.Step {
134
- Name : "FilterObjectsDirs" ,
135
- Fn : collection .FilterObjectsDirs ,
136
- })
137
- }
138
-
139
- if cli .FilterDirsNot {
140
- syncGroup .AddPipeStep (pipeline.Step {
141
- Name : "FilterObjectsDirsNot" ,
142
- Fn : collection .FilterObjectsDirsNot ,
143
- })
144
- }
145
-
146
160
if len (cli .FilterCT ) > 0 {
147
161
syncGroup .AddPipeStep (pipeline.Step {
148
162
Name : "FilterObjByCT" ,
@@ -166,20 +180,6 @@ func setupPipeline(syncGroup *pipeline.Group, cli *argsParsed) {
166
180
})
167
181
}
168
182
169
- if cli .FilterExist {
170
- syncGroup .AddPipeStep (pipeline.Step {
171
- Name : "FilterObjectsExist" ,
172
- Fn : collection .FilterObjectsExist ,
173
- })
174
- }
175
-
176
- if cli .FilterExistNot {
177
- syncGroup .AddPipeStep (pipeline.Step {
178
- Name : "FilterObjectsExistNot" ,
179
- Fn : collection .FilterObjectsExistNot ,
180
- })
181
- }
182
-
183
183
syncGroup .AddPipeStep (pipeline.Step {
184
184
Name : "LoadObjData" ,
185
185
Fn : collection .LoadObjectData ,
0 commit comments