We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7f2536 commit 77144c3Copy full SHA for 77144c3
packages/ns-dpi/files/dpi-nft
@@ -35,6 +35,8 @@ def generate_dpi():
35
)
36
# save to nftables directory table-pre, only if the file is changed
37
file_path = '/usr/share/nftables.d/table-pre/dpi_blocks.nft'
38
+ # ensure directory exists
39
+ os.makedirs(os.path.dirname(file_path), exist_ok=True)
40
current = None
41
if os.path.exists(file_path):
42
with open(file_path, 'r') as f:
0 commit comments