File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ def _loadvdis(self):
119
119
return
120
120
121
121
for name in filter (is_image_utf8_compatible ,
122
- util .listdir (self .path , quiet = True )):
122
+ util .listdir (self .path , quiet = True , depth = 10 )):
123
123
fileName = self .path + "/" + name
124
124
if os .path .isdir (fileName ):
125
125
util .SMlog ("_loadvdis : %s is a directory. Ignore" % fileName )
Original file line number Diff line number Diff line change @@ -208,8 +208,8 @@ def pread3(cmdlist, text):
208
208
SMlog (" pread3 SUCCESS" )
209
209
return stdout
210
210
211
- def listdir (path , quiet = False ):
212
- cmd = ["ls " , path , "-1 " , "--color=never" ]
211
+ def listdir (path , quiet = False , depth = 1 ):
212
+ cmd = ["find " , path , "-maxdepth " , str ( depth ) ]
213
213
try :
214
214
text = pread2 (cmd , quiet = quiet )[:- 1 ]
215
215
if len (text ) == 0 :
You can’t perform that action at this time.
0 commit comments