pyshark icon indicating copy to clipboard operation
pyshark copied to clipboard

FileCapture breaks with pathlib pathes

Open sedrubal opened this issue 3 years ago • 1 comments

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.

sedrubal avatar Oct 06 '21 10:10 sedrubal

I experienced the same problem. My fix would be to use .absolute() instead of .name

H4rryK4ne avatar Dec 06 '21 16:12 H4rryK4ne