Remember to create a temporary directory before dissecting
authorkrj <krj@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 11 Oct 2009 05:14:04 +0000 (05:14 +0000)
committerkrj <krj@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 11 Oct 2009 05:14:04 +0000 (05:14 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30486 f5534014-38df-0310-8fa8-9805f1628bb7

tools/indexcap.py

index 40030a599aa9943094135ff7a9030a5d30b481da..20a2f42f97efc83c2ccdebee2185df49651180e1 100755 (executable)
@@ -95,6 +95,7 @@ def dissect_file_process(tshark, tmpdir, file):
 
 def dissect_files(tshark, num_procs, max_files, cap_files):
     pool = multiprocessing.Pool(num_procs)
+    tmpdir = tempfile.mkdtemp()
     print "Temporary working dir: %s" % tmpdir
     results = [pool.apply_async(dissect_file_process, [tshark, tmpdir, file]) for file in cap_files]
     try: