Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion drivers/ISOSR.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def _loadvdis(self):
return

for name in filter(is_image_utf8_compatible,
util.listdir(self.path, quiet = True)):
util.listdir(self.path, quiet = True, depth=10)):
fileName = self.path + "/" + name
if os.path.isdir(fileName):
util.SMlog("_loadvdis : %s is a directory. Ignore" % fileName)
Expand Down
4 changes: 2 additions & 2 deletions drivers/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ def pread3(cmdlist, text):
SMlog(" pread3 SUCCESS")
return stdout

def listdir(path, quiet = False):
cmd = ["ls", path, "-1", "--color=never"]
def listdir(path, quiet=False, depth=1):
cmd = ["find", path, "-maxdepth", str(depth)]
try:
text = pread2(cmd, quiet = quiet)[:-1]
if len(text) == 0:
Expand Down