From dbab5089f271d34067aa0e59f2968765b8cf75c7 Mon Sep 17 00:00:00 2001 From: Imanol-Mikel Barba Sabariego Date: Mon, 24 Oct 2016 16:33:44 +0200 Subject: [PATCH] fixed small bug --- .idea/workspace.xml | 6 ++---- modules/__pycache__/mft.cpython-34.pyc | Bin 1042 -> 0 bytes modules/mft.py | 2 ++ 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 2a01b66..cbae5a7 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,8 +2,6 @@ - - @@ -97,7 +95,7 @@ - + @@ -639,7 +637,7 @@ - + diff --git a/modules/__pycache__/mft.cpython-34.pyc b/modules/__pycache__/mft.cpython-34.pyc index edffb1d..a0f6321 100644 Binary files a/modules/__pycache__/mft.cpython-34.pyc and b/modules/__pycache__/mft.cpython-34.pyc differ diff --git a/modules/mft.py b/modules/mft.py index 61e334f..57ca2f5 100644 --- a/modules/mft.py +++ b/modules/mft.py @@ -1,6 +1,7 @@ from module import Module from runcmd import runProcess import tomb +import os def getInstance(): return MFTModule() @@ -14,6 +15,7 @@ class MFTModule(Module): self.vars = {} def run(self): + os.mkdir(tomb.getPath() + "mft/") for vol in self.vars['ntfsvol'].value: result = runProcess(["icat","/dev/" + vol,"0"]) mftbin = open(tomb.getPath() + "mft/" + vol + ".bin",'wb') -- libgit2 0.22.2