Lines 200-206
Link Here
|
200 |
def _isreg_check_(file_stat, file): |
200 |
def _isreg_check_(file_stat, file): |
201 |
"""check if file is a regular file.""" |
201 |
"""check if file is a regular file.""" |
202 |
is_reg_file = stat.S_ISREG(file_stat[stat.ST_MODE]) |
202 |
is_reg_file = stat.S_ISREG(file_stat[stat.ST_MODE]) |
203 |
return not is_reg_file, is_reg_file |
203 |
is_lnk_file = stat.S_ISLNK(file_stat[stat.ST_MODE]) |
|
|
204 |
return not (is_reg_file or is_lnk_file), is_reg_file or is_lnk_file |
204 |
|
205 |
|
205 |
@staticmethod |
206 |
@staticmethod |
206 |
def _size_check_(size_limit, file_stat, file): |
207 |
def _size_check_(size_limit, file_stat, file): |