Created
September 6, 2016 01:42
-
-
Save rreinhardt/49dd99e376de230b43a61b5c184d243a to your computer and use it in GitHub Desktop.
Fix for local execution of Recuperabit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git diff | |
diff --git a/recuperabit/fs/ntfs.py b/recuperabit/fs/ntfs.py | |
index 56e7467..961aab3 100644 | |
--- a/recuperabit/fs/ntfs.py | |
+++ b/recuperabit/fs/ntfs.py | |
@@ -279,7 +279,8 @@ class NTFSFile(File): | |
name = best_name([ | |
(f['content']['namespace'], f['content']['name'] + ads_suffix) | |
- for f in filenames if f['content'] is not None and | |
+ for f in filenames if f.has_key('content') and | |
+ f['content'] is not None and | |
f['content']['name_length'] > 0 and | |
f['content']['name'] is not None | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This solves the following error that I ran into running the tool—