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