def listdir(self, path): paths = self.getTruePaths(path) if len(paths) != 0: return getFile(self.book_trees, paths) else: return self.book_trees
def getdownloadurl(self, path, name): tmp = connect_path(path, name) files = getFile(self.book_trees, self.getTruePaths(tmp)) return [ connect_path(Config.SITE_BOOK_DONWLOAD, connect_path(path, ee)) for ee in files ]
def exists(self, path): files = getFile(self.book_trees, self.getTruePaths(path)) return files != None
def exists(self, path): files = getFile(self.book_trees, self.getTruePaths(path)) # logging.info(len(files)!=0) return len(files) != 0