File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 24
24
25
25
from __future__ import print_function , absolute_import
26
26
27
+ import logging
27
28
import os
28
29
import posixpath
29
30
import re
32
33
from commoncode import fileutils
33
34
34
35
36
+ logger = logging .getLogger (__name__ )
37
+ DEBUG = False
38
+ # import sys
39
+ # logging.basicConfig(level=logging.DEBUG, stream=sys.stdout)
40
+ # logger.setLevel(logging.DEBUG)
41
+
42
+
35
43
root_dir = os .path .join (os .path .dirname (__file__ ), 'bin' )
36
44
37
45
# Suffix added to extracted target_dir paths
@@ -134,9 +142,8 @@ def extracted_files(location):
134
142
Yield the locations of extracted files in a directory location.
135
143
"""
136
144
assert location
137
- for top , _dirs , files in os .walk (location , topdown = True ):
138
- for f in files :
139
- yield os .path .join (top , f )
145
+ logger .debug ('extracted_files for: %(location)r' % locals ())
146
+ return fileutils .file_iter (location )
140
147
141
148
142
149
def new_name (location , is_dir = False ):
You can’t perform that action at this time.
0 commit comments