We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c38a5de commit 2ae46b7Copy full SHA for 2ae46b7
1 file changed
scapy/main.py
@@ -73,7 +73,7 @@ def _probe_xdg_folder(var, default, *cf):
73
# https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
74
# "If, when attempting to write a file, the destination directory is
75
# non-existent an attempt should be made to create it with permission 0700."
76
- path.mkdir(mode=0o700)
+ path.mkdir(mode=0o700, exist_ok=True)
77
return path.joinpath(*cf).resolve()
78
79
0 commit comments