Exemplo n.º 1
0
 def get_files(self, exts=None):
     """ The list of files in the finalized torrent def.
     @param exts (Optional) list of filename extensions (without leading .)
     to search for.
     @return A list of filenames.
     """
     return [filename for filename, _ in maketorrent.get_files(self.metainfo, exts)]
Exemplo n.º 2
0
    def get_files(self, exts=None):
        """ The list of files in the finalized torrent def.
        @param exts (Optional) list of filename extensions (without leading .)
        to search for.
        @return A list of filenames.
        """
        if not self.metainfo_valid:
            raise NotYetImplementedException()  # must save first

        return maketorrent.get_files(self.metainfo, exts)
Exemplo n.º 3
0
 def get_files(self,exts=None):
     """ The list of files in the finalized torrent def.
     @param exts (Optional) list of filename extensions (without leading .)
     to search for.
     @return A list of filenames.
     """
     if not self.metainfo_valid:
         raise NotYetImplementedException() # must save first
     
     return maketorrent.get_files(self.metainfo,exts)