Closed maxsharabayko closed 4 years ago
Example file name: srt_1.4.1_snd-call_rcv-list.pcapng with multiple dots is not handled correctly.
srt_1.4.1_snd-call_rcv-list.pcapng
File "\tcpdump_processing\convert.py", line 57, in convert_to_csv name, _ = filename.split('.') ValueError: too many values to unpack (expected 2)
The splitting should replace only the last part of the split() function, while all the previous parts should be merged.
Maybe the reverse find is even better: rfind().
rfind()
A duplicate of #9 .
Example file name:
srt_1.4.1_snd-call_rcv-list.pcapng
with multiple dots is not handled correctly.The splitting should replace only the last part of the split() function, while all the previous parts should be merged.
Maybe the reverse find is even better:
rfind()
.