15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24
26
return subp.endswith('.THIS') or subp.endswith('.BASE') or\
25
27
subp.endswith('.OTHER') or subp.endswith('~') or subp.endswith('.tmp')
27
def iter_deletables(tree, unknown=True, ignored=False, detrius=False):
29
def iter_deletables(tree, unknown=True, ignored=False, detritus=False):
28
30
"""Iterate through files that may be deleted"""
29
31
for subp in tree.extras():
31
33
yield tree.abspath(subp), subp
33
35
if tree.is_ignored(subp):