diff --git a/docs/devnotes b/docs/devnotes index 4d0cb64..ab9491f 100644 --- a/docs/devnotes +++ b/docs/devnotes @@ -3,20 +3,17 @@ Action Items from the code review: --Create a document describing the index file and include an example +-Add function to query the index for a specific MD5 table (database schema) + +-Add a feature to add a fingerprint to the existing index (it currently recreates an index) -Add a table to the Index to list all the applications that have a fingerprint (include the app version) -more functionality can result from this information in the index +-Create a document describing the index file and include an example -Create an example of the FingerprintDB class usage with a standalone tool --Add a feature to add a fingerprint to the existing index (it currently recreates an index) - --Add function to query the index for a specific MD5 table (database schema) - -Add automated app version discovery to the android pull feature - - Get App Version http://stackoverflow.com/questions/11942762/get-application-version-name-using-adb diff --git a/libs/fingerprint_index.py b/libs/fingerprint_index.py index 4ad95f8..089705a 100644 --- a/libs/fingerprint_index.py +++ b/libs/fingerprint_index.py @@ -29,7 +29,11 @@ class FingerprintIndex: # def openIndex(self, fp_dir): - fq_fpidx = fp_dir + os.path.sep + INDEX_FILENAME + if os.path.isdir(fp_dir): + fq_fpidx = fp_dir + os.path.sep + INDEX_FILENAME + else: + fq_fpidx = fp_dir + try: if (os.path.isfile(fq_fpidx)): self.db_conn = sql.connect(fq_fpidx)