示例#1
0
    def listdir(self, path):
        paths = self.getTruePaths(path)

        if len(paths) != 0:
            return getFile(self.book_trees, paths)
        else:
            return self.book_trees
示例#2
0
    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
        ]
示例#3
0
 def exists(self, path):
     files = getFile(self.book_trees, self.getTruePaths(path))
     return files != None
示例#4
0
 def exists(self, path):
     files = getFile(self.book_trees, self.getTruePaths(path))
     # logging.info(len(files)!=0)
     return len(files) != 0