Commit dbab5089f271d34067aa0e59f2968765b8cf75c7

Authored by Imanol-Mikel Barba Sabariego
1 parent 36718063

fixed small bug

.idea/workspace.xml
... ... @@ -2,8 +2,6 @@
2 2 <project version="4">
3 3 <component name="ChangeListManager">
4 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 5 <change type="MODIFICATION" beforePath="$PROJECT_DIR$/modules/mft.py" afterPath="$PROJECT_DIR$/modules/mft.py" />
8 6 </list>
9 7 <ignored path="gravedigger.iws" />
... ... @@ -97,7 +95,7 @@
97 95 <entry file="file://$PROJECT_DIR$/modules/mft.py">
98 96 <provider selected="true" editor-type-id="text-editor">
99 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 99 <folding>
102 100 <element signature="e#0#25#0" expanded="true" />
103 101 </folding>
... ... @@ -639,7 +637,7 @@
639 637 <entry file="file://$PROJECT_DIR$/modules/mft.py">
640 638 <provider selected="true" editor-type-id="text-editor">
641 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 641 <folding>
644 642 <element signature="e#0#25#0" expanded="true" />
645 643 </folding>
... ...
modules/__pycache__/mft.cpython-34.pyc
No preview for this file type
modules/mft.py
1 1 from module import Module
2 2 from runcmd import runProcess
3 3 import tomb
  4 +import os
4 5  
5 6 def getInstance():
6 7 return MFTModule()
... ... @@ -14,6 +15,7 @@ class MFTModule(Module):
14 15 self.vars = {}
15 16  
16 17 def run(self):
  18 + os.mkdir(tomb.getPath() + "mft/")
17 19 for vol in self.vars['ntfsvol'].value:
18 20 result = runProcess(["icat","/dev/" + vol,"0"])
19 21 mftbin = open(tomb.getPath() + "mft/" + vol + ".bin",'wb')
... ...