fix comment

This commit is contained in:
limkokhole
2020-06-24 18:31:56 +08:00
parent a01d85dfec
commit fb600df580

View File

@@ -361,7 +361,8 @@ def get_max_path(arg_cut, fs_f_max, fpart_excluded_immutable, immutable):
if arg_cut >= 0: if arg_cut >= 0:
fpart_excluded_immutable = fpart_excluded_immutable[:arg_cut] fpart_excluded_immutable = fpart_excluded_immutable[:arg_cut]
if immutable: if immutable:
immutable_len = len(immutable.encode('utf-8')) # just in case # immutable shouldn't limit to 1 byte(may be change next time or next project), so need encode also
immutable_len = len(immutable.encode('utf-8'))
else: else:
immutable_len = 0 immutable_len = 0
space_remains = fs_f_max - immutable_len space_remains = fs_f_max - immutable_len