Commit dbab5089f271d34067aa0e59f2968765b8cf75c7
1 parent
36718063
fixed small bug
Showing
3 changed files
with
4 additions
and
4 deletions
.idea/workspace.xml
@@ -2,8 +2,6 @@ | @@ -2,8 +2,6 @@ | ||
2 | <project version="4"> | 2 | <project version="4"> |
3 | <component name="ChangeListManager"> | 3 | <component name="ChangeListManager"> |
4 | <list default="true" id="33419617-7da8-422e-9ac6-68e0b317ebf8" name="Default" comment=""> | 4 | <list default="true" id="33419617-7da8-422e-9ac6-68e0b317ebf8" name="Default" comment=""> |
5 | - <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/tomb.py" /> | ||
6 | - <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" /> | ||
7 | <change type="MODIFICATION" beforePath="$PROJECT_DIR$/modules/mft.py" afterPath="$PROJECT_DIR$/modules/mft.py" /> | 5 | <change type="MODIFICATION" beforePath="$PROJECT_DIR$/modules/mft.py" afterPath="$PROJECT_DIR$/modules/mft.py" /> |
8 | </list> | 6 | </list> |
9 | <ignored path="gravedigger.iws" /> | 7 | <ignored path="gravedigger.iws" /> |
@@ -97,7 +95,7 @@ | @@ -97,7 +95,7 @@ | ||
97 | <entry file="file://$PROJECT_DIR$/modules/mft.py"> | 95 | <entry file="file://$PROJECT_DIR$/modules/mft.py"> |
98 | <provider selected="true" editor-type-id="text-editor"> | 96 | <provider selected="true" editor-type-id="text-editor"> |
99 | <state relative-caret-position="190"> | 97 | <state relative-caret-position="190"> |
100 | - <caret line="10" column="25" selection-start-line="10" selection-start-column="25" selection-end-line="10" selection-end-column="25" /> | 98 | + <caret line="10" column="23" selection-start-line="10" selection-start-column="23" selection-end-line="10" selection-end-column="23" /> |
101 | <folding> | 99 | <folding> |
102 | <element signature="e#0#25#0" expanded="true" /> | 100 | <element signature="e#0#25#0" expanded="true" /> |
103 | </folding> | 101 | </folding> |
@@ -639,7 +637,7 @@ | @@ -639,7 +637,7 @@ | ||
639 | <entry file="file://$PROJECT_DIR$/modules/mft.py"> | 637 | <entry file="file://$PROJECT_DIR$/modules/mft.py"> |
640 | <provider selected="true" editor-type-id="text-editor"> | 638 | <provider selected="true" editor-type-id="text-editor"> |
641 | <state relative-caret-position="190"> | 639 | <state relative-caret-position="190"> |
642 | - <caret line="10" column="25" selection-start-line="10" selection-start-column="25" selection-end-line="10" selection-end-column="25" /> | 640 | + <caret line="10" column="23" selection-start-line="10" selection-start-column="23" selection-end-line="10" selection-end-column="23" /> |
643 | <folding> | 641 | <folding> |
644 | <element signature="e#0#25#0" expanded="true" /> | 642 | <element signature="e#0#25#0" expanded="true" /> |
645 | </folding> | 643 | </folding> |
modules/__pycache__/mft.cpython-34.pyc
No preview for this file type
modules/mft.py
1 | from module import Module | 1 | from module import Module |
2 | from runcmd import runProcess | 2 | from runcmd import runProcess |
3 | import tomb | 3 | import tomb |
4 | +import os | ||
4 | 5 | ||
5 | def getInstance(): | 6 | def getInstance(): |
6 | return MFTModule() | 7 | return MFTModule() |
@@ -14,6 +15,7 @@ class MFTModule(Module): | @@ -14,6 +15,7 @@ class MFTModule(Module): | ||
14 | self.vars = {} | 15 | self.vars = {} |
15 | 16 | ||
16 | def run(self): | 17 | def run(self): |
18 | + os.mkdir(tomb.getPath() + "mft/") | ||
17 | for vol in self.vars['ntfsvol'].value: | 19 | for vol in self.vars['ntfsvol'].value: |
18 | result = runProcess(["icat","/dev/" + vol,"0"]) | 20 | result = runProcess(["icat","/dev/" + vol,"0"]) |
19 | mftbin = open(tomb.getPath() + "mft/" + vol + ".bin",'wb') | 21 | mftbin = open(tomb.getPath() + "mft/" + vol + ".bin",'wb') |