diff options
| author | jvoisin | 2014-06-08 13:39:18 +0200 |
|---|---|---|
| committer | jvoisin | 2014-06-08 13:39:18 +0200 |
| commit | af36529554c39a2eefcc2c8723715e2d25b401b8 (patch) | |
| tree | f54b964520bab44d1dfac725086211eaf22d3763 /libmat/mat.py | |
| parent | ef5a32cfd3c0555ffe5ddf413eeaae61622ebb4b (diff) | |
Rename the MAT folder to libmat.
This commit fixes some issues for dump operating
systems who doesn't handle capitalization.
Diffstat (limited to '')
| -rw-r--r-- | libmat/mat.py (renamed from MAT/mat.py) | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MAT/mat.py b/libmat/mat.py index 5b1fbda..8dfc2dc 100644 --- a/MAT/mat.py +++ b/libmat/mat.py | |||
| @@ -12,7 +12,7 @@ import xml.sax | |||
| 12 | import hachoir_core.cmd_line | 12 | import hachoir_core.cmd_line |
| 13 | import hachoir_parser | 13 | import hachoir_parser |
| 14 | 14 | ||
| 15 | import MAT.exceptions | 15 | import libmat.exceptions |
| 16 | 16 | ||
| 17 | __version__ = '0.5.2' | 17 | __version__ = '0.5.2' |
| 18 | __author__ = 'jvoisin' | 18 | __author__ = 'jvoisin' |
| @@ -117,7 +117,7 @@ def secure_remove(filename): | |||
| 117 | os.chmod(filename, 220) | 117 | os.chmod(filename, 220) |
| 118 | except OSError: | 118 | except OSError: |
| 119 | logging.error('Unable to add write rights to %s' % filename) | 119 | logging.error('Unable to add write rights to %s' % filename) |
| 120 | raise MAT.exceptions.UnableToWriteFile | 120 | raise libmat.exceptions.UnableToWriteFile |
| 121 | 121 | ||
| 122 | try: | 122 | try: |
| 123 | if not subprocess.call(['shred', '--remove', filename]): | 123 | if not subprocess.call(['shred', '--remove', filename]): |
| @@ -131,7 +131,7 @@ def secure_remove(filename): | |||
| 131 | os.remove(filename) | 131 | os.remove(filename) |
| 132 | except OSError: | 132 | except OSError: |
| 133 | logging.error('Unable to remove %s' % filename) | 133 | logging.error('Unable to remove %s' % filename) |
| 134 | raise MAT.exceptions.UnableToRemoveFile | 134 | raise libmat.exceptions.UnableToRemoveFile |
| 135 | 135 | ||
| 136 | return True | 136 | return True |
| 137 | 137 | ||
