Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
binwalk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-gitdep
binwalk
Commits
37f817ff
Commit
37f817ff
authored
Nov 19, 2016
by
Kriskras99
Committed by
GitHub
Nov 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create extraction dir if it does not exists
parent
f0136375
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
extractor.py
src/binwalk/modules/extractor.py
+2
-0
No files found.
src/binwalk/modules/extractor.py
View file @
37f817ff
...
@@ -105,6 +105,8 @@ class Extractor(Module):
...
@@ -105,6 +105,8 @@ class Extractor(Module):
# The input file specific output directory path (default to CWD)
# The input file specific output directory path (default to CWD)
if
self
.
base_directory
:
if
self
.
base_directory
:
self
.
directory
=
os
.
path
.
realpath
(
self
.
base_directory
)
self
.
directory
=
os
.
path
.
realpath
(
self
.
base_directory
)
if
not
os
.
path
.
exists
(
self
.
directory
):
os
.
makedirs
(
self
.
directory
)
else
:
else
:
self
.
directory
=
os
.
getcwd
()
self
.
directory
=
os
.
getcwd
()
# Key value pairs of input file path and output extraction path
# Key value pairs of input file path and output extraction path
...
...
Write
Preview
Markdown
is supported
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