pyshark
pyshark copied to clipboard
FileCapture breaks with pathlib pathes
Because of this line: https://github.com/KimiNewt/pyshark/blob/master/src/pyshark/capture/file_capture.py#L44 it is not possible to create FileCapture
instances using pathlib pathes. Can you tell me the reason for this line? Then I can try to create a pull request.
I experienced the same problem. My fix would be to use .absolute()
instead of .name