Corrected a bug with the filname extraction
This commit is contained in:
parent
a6cbb48222
commit
4ad390304c
1 changed files with 2 additions and 2 deletions
|
|
@ -71,9 +71,9 @@ def extract_file_name_and_prefix(file_name):
|
||||||
"""
|
"""
|
||||||
file_prefix = file_name[:file_prefix_length]
|
file_prefix = file_name[:file_prefix_length]
|
||||||
|
|
||||||
if file.endswith(file_log_suffix):
|
if file_name.endswith(file_log_suffix):
|
||||||
suffix_length = len(file_log_suffix)
|
suffix_length = len(file_log_suffix)
|
||||||
elif file.endswith(callback_log_suffix):
|
elif file_name.endswith(callback_log_suffix):
|
||||||
suffix_length = len(callback_log_suffix)
|
suffix_length = len(callback_log_suffix)
|
||||||
else:
|
else:
|
||||||
suffix_length = 0
|
suffix_length = 0
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue