Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Network Health
torflow
Commits
666689ad
Commit
666689ad
authored
Nov 06, 2014
by
aagbsn
Browse files
Create scan-data directories if they do not exist.
Fixes
#13663
. Thanks to micah for reporting this issue.
parent
6e9fed92
Changes
1
Hide whitespace changes
Inline
Side-by-side
NetworkScanners/BwAuthority/bwauthority_child.py
View file @
666689ad
...
...
@@ -296,6 +296,11 @@ def main(argv):
(
start_pct
,
stop_pct
,
nodes_per_slice
,
save_every
,
circs_per_node
,
out_dir
,
max_fetch_time
,
tor_dir
,
sleep_start
,
sleep_stop
,
min_streams
,
pid_file_name
,
db_url
)
=
read_config
(
argv
[
1
])
# make sure necessary out_dir directory exists
path
=
os
.
getcwd
()
+
'/'
+
out_dir
if
not
os
.
path
.
exists
(
path
):
os
.
makedirs
(
path
)
if
pid_file_name
:
pidfd
=
file
(
pid_file_name
,
'w'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment