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)]
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)
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)