File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,13 @@ def get_res(parent, fname):
139
139
rootfs_path = rootfs_path ,
140
140
)
141
141
142
+ if with_dir :
143
+ rootfs_path = pipes .normalize_path ("" )
144
+ yield Resource (
145
+ location = location ,
146
+ rootfs_path = rootfs_path ,
147
+ )
148
+
142
149
for top , dirs , files in os .walk (location ):
143
150
for f in files :
144
151
yield get_res (parent = top , fname = f )
Original file line number Diff line number Diff line change @@ -1205,7 +1205,7 @@ def test_scanpipe_rootfs_pipeline_integration(self):
1205
1205
exitcode , out = pipeline .execute ()
1206
1206
self .assertEqual (0 , exitcode , msg = out )
1207
1207
1208
- self .assertEqual (16 , project1 .codebaseresources .count ())
1208
+ self .assertEqual (17 , project1 .codebaseresources .count ())
1209
1209
self .assertEqual (2 , project1 .discoveredpackages .count ())
1210
1210
self .assertEqual (0 , project1 .discovereddependencies .count ())
1211
1211
You can’t perform that action at this time.
0 commit comments