Closed jbleyel closed 3 years ago
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
https://github.com/opendreambox/enigma2-plugins/blob/f618a325f01a2471212a3373980111998b0e88c4/webinterface/src/WebComponents/Sources/Movie.py#L213
os.path.isdir needs the full path like this:
https://github.com/opendreambox/enigma2-plugins/blob/f618a325f01a2471212a3373980111998b0e88c4/webinterface/src/WebComponents/Sources/Movie.py#L213