-
Notifications
You must be signed in to change notification settings - Fork 7
No output file from Kismet database with no rows #14
Copy link
Copy link
Open
Description
Whenever I run kismet_log_to_pcap --in my_rowless_file.kismet --out output.pcap, the output file is not actually created.
This is likely currently intentional, but I'm not sure that is the right default behavior to have. This was causing issues in my script where I was trying to read data from a file I expected to exist, even if the file was just empty. I've implemented a workaround for the time being, but I really think a solution like this should be the library's default:
filename = await self.convert_kismet_to_pcap(kismet_in=filename)
with open(csv_filename) as read_obj:
extra_info_kismet_df = pd.read_csv(read_obj, low_memory=False, delimiter='\t')
# Handle cases where there is no generated file (because the Kismet file has no rows)
if not os.path.isfile(filename):
with open(filename, "w") as empty_file:
empty_file.write("")Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels