# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+import re
import os
import logging
import PAR2Set.Base
return rsutil.common.SUCCESS
+ def find_deleteable_files (self):
+ """Find all files which are deletable by using the regular expression from the
+ configuration file"""
+
+ DELETE_REGEX = rsutil.common.config_get_value ('regular expressions', 'delete_regex')
+ dregex = re.compile (DELETE_REGEX, re.IGNORECASE)
+
+ return [f for f in self.all_files if dregex.match (f) and \
+ f not in self.prot_matched_files]
+
def find_extraction_heads (self):
"""Find the extraction heads. Since this should not be an extractable set,
we return the files which are protected directly by the PAR2 files."""