[Webinterface] no result in getMovieSubdirs
Closed this issue · 0 comments
jbleyel commented
os.path.isdir needs the full path like this:
def getMovieSubdirs(self):
if not pathExists(self.dirname):
return []
locations = []
for child in os.listdir(self.dirname):
sep = "" if self.dirname.endswith("/") else "/"
ch = "%s%s%s/" % (self.dirname, sep, child)
if os.path.isdir(ch):
locations.append(ch)
return locations