73
73
class AddWithSkipLargeAction(AddAction):
74
74
"""A class that can decide to skip a file if it's considered too large"""
81
78
def skip_file(self, tree, path, kind, stat_value = None):
84
82
if self._maxSize is None:
90
88
file_size = os.path.getsize(path);
92
90
file_size = stat_value.st_size;
93
91
if self._maxSize > 0 and file_size > self._maxSize:
94
92
ui.ui_factory.show_warning(gettext(