質問編集履歴

1

質問に対する解決法の追記(自己解決とは異なると判断)

2018/09/11 00:10

投稿

chibi144
chibi144

スコア64

test CHANGED
File without changes
test CHANGED
@@ -145,3 +145,21 @@
145
145
 
146
146
 
147
147
  Python 3.6.5
148
+
149
+
150
+
151
+
152
+
153
+ ## 追記(20180911)
154
+
155
+
156
+
157
+ 上ののコードの一部書き換えで不具合の回避ができましたので、共有いたします。
158
+
159
+ ```python
160
+
161
+ - [ writer.writerow([line, p]) for p in search_target_path.glob("**/" + line) ]
162
+
163
+ + [ writer.writerow([line, p.with_name(line)]) for p in search_target_path.glob("**/" + line) ]
164
+
165
+ ```